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