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:41:05 +02:00
Ursprung 4503ffce2e
Commit 92cc4cf897

Datei anzeigen

@ -53,11 +53,10 @@ public class TpCommand extends BasicCommand {
} }
ServerInfo server = getTarget(args[0]); ServerInfo server = getTarget(args[0]);
ServerInfo teamServer = Storage.teamServers.get(sender.user().getTeam()); boolean onTeamServer = Storage.teamServers.containsValue(player.getServer().getInfo());
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() || onTeamServer) {
Chat19.chat(player, "/tp " + String.join(" ", args)); Chat19.chat(player, "/tp " + String.join(" ", args));
return; return;
} }