@Override public String getProxy() { return BukkitBridge.get() .getPlayerManager() .getPlayerData(playerId) .get("currentproxy", "Inconnu"); }
@Override public void sendMessage(TextComponent component) { BukkitBridge.get() .getPubSub() .send("apiexec.message", playerId + " " + new Gson().toJson(component)); }
@Override public void connectGame(String game) { BukkitBridge.get().getPubSub().send("join." + game, playerId + ""); }
@Override public void connect(String server) { BukkitBridge.get().getPubSub().send("apiexec.connect", playerId + " " + server); }
@Override public void disconnect(TextComponent reason) { BukkitBridge.get().getPubSub().send("apiexec.kick", playerId + " " + new Gson().toJson(reason)); }