SteamWar/BungeeCore
Archiviert
13
2

Fix TpCommand for teamserver
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

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 server = getTarget(args[0]);
ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam()); ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam());
System.out.println(teamServer + " " + sender.user().getTeam());
//Give control of teleport command to server //Give control of teleport command to server
if (server == player.getServer().getInfo() || teamServer == player.getServer().getInfo()) { if (server == player.getServer().getInfo() || teamServer == player.getServer().getInfo()) {
@ -61,7 +62,7 @@ public class TpCommand extends BasicCommand {
return; return;
} }
if(server == null) { if(server == null) {
ChatSender.of(player).system("JOINME_PLAYER_OFFLINE"); sender.system("JOINME_PLAYER_OFFLINE");
return; return;
} }