diff --git a/src/de/steamwar/bungeecore/commands/TpCommand.java b/src/de/steamwar/bungeecore/commands/TpCommand.java index 6f62b9e..a5fc477 100644 --- a/src/de/steamwar/bungeecore/commands/TpCommand.java +++ b/src/de/steamwar/bungeecore/commands/TpCommand.java @@ -54,6 +54,7 @@ public class TpCommand extends BasicCommand { ServerInfo server = getTarget(args[0]); ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam()); + System.out.println(teamServer + " " + sender.user().getTeam()); //Give control of teleport command to server if (server == player.getServer().getInfo() || teamServer == player.getServer().getInfo()) { @@ -61,7 +62,7 @@ public class TpCommand extends BasicCommand { return; } if(server == null) { - ChatSender.of(player).system("JOINME_PLAYER_OFFLINE"); + sender.system("JOINME_PLAYER_OFFLINE"); return; }