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