Archiviert
1
0

Fix TpCommand for teamserver

Dieser Commit ist enthalten in:
yoyosource 2022-06-27 15:38:37 +02:00
Ursprung d96d3caa43
Commit 4503ffce2e

Datei anzeigen

@ -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;
}