Dieser Commit ist enthalten in:
Ursprung
2ce64e2203
Commit
f26fd7a700
@ -55,15 +55,15 @@ 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());
|
||||||
|
|
||||||
if(server == null && !(teamServer != null && player.getServer().getInfo() == teamServer)) {
|
|
||||||
ChatSender.of(player).system("JOINME_PLAYER_OFFLINE");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//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 != null && player.getServer().getInfo() == teamServer)) {
|
||||||
Chat19.chat(player, "/tp " + String.join(" ", args));
|
Chat19.chat(player, "/tp " + String.join(" ", args));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(server == null) {
|
||||||
|
ChatSender.of(player).system("JOINME_PLAYER_OFFLINE");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
teleport(player, server);
|
teleport(player, server);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren