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:35:58 +02:00
Ursprung f26fd7a700
Commit d96d3caa43

Datei anzeigen

@ -56,7 +56,7 @@ public class TpCommand extends BasicCommand {
ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam()); 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() || (teamServer != null && player.getServer().getInfo() == teamServer)) { if (server == player.getServer().getInfo() || teamServer == player.getServer().getInfo()) {
Chat19.chat(player, "/tp " + String.join(" ", args)); Chat19.chat(player, "/tp " + String.join(" ", args));
return; return;
} }