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:25:06 +02:00
Ursprung 4b8950b369
Commit 732ad43e23

Datei anzeigen

@ -58,8 +58,9 @@ public class TpCommand extends BasicCommand {
ChatSender.of(player).system("JOINME_PLAYER_OFFLINE"); ChatSender.of(player).system("JOINME_PLAYER_OFFLINE");
return; return;
} }
ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam());
//Give control of teleport command to server //Give control of teleport command to server
if (server == player.getServer().getInfo()) { if (server == player.getServer().getInfo() || server == teamServer) {
Chat19.chat(player, "/tp " + String.join(" ", args)); Chat19.chat(player, "/tp " + String.join(" ", args));
return; return;
} }