Dieser Commit ist enthalten in:
Ursprung
4503ffce2e
Commit
92cc4cf897
@ -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;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren