geforkt von SteamWar/BungeeCore
Add TpCommand MultiLang
Dieser Commit ist enthalten in:
Ursprung
d20efc1a2f
Commit
88ac5a7281
@ -35,8 +35,6 @@ import java.util.Arrays;
|
||||
|
||||
public class TpCommand extends BasicCommand {
|
||||
|
||||
private static final String DENY_MESSAGE = "§cDu kannst diesem Spieler derzeit nicht folgen.";
|
||||
|
||||
public static void onTp(ChatEvent e, String[] command){
|
||||
if(!(e.getSender() instanceof ProxiedPlayer))
|
||||
return;
|
||||
@ -53,7 +51,7 @@ public class TpCommand extends BasicCommand {
|
||||
if(!(sender instanceof ProxiedPlayer))
|
||||
return;
|
||||
if(!onTp((ProxiedPlayer) sender, args))
|
||||
BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "§cKonnte das angegebene Ziel nicht finden.");
|
||||
Message.send("TP_NOT_FOUND", sender);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -67,12 +65,12 @@ public class TpCommand extends BasicCommand {
|
||||
private static boolean onTp(ProxiedPlayer player, String[] args){
|
||||
if(args.length == 0){
|
||||
if(Event.get() == null)
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§8/§etp §8[§7Spieler§8]");
|
||||
Message.send("TP_SYNTAX", player);
|
||||
else
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§8/§etp §8[§7Spieler §8oder §7Team§8]");
|
||||
Message.send("TP_SYNTAX_EVENT", player);
|
||||
return true;
|
||||
}else if(CheckCommand.isChecking(player)){
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu prüfst gerade eine Schematic!");
|
||||
Message.send("CHECK_CHECKING", player);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -128,13 +126,13 @@ public class TpCommand extends BasicCommand {
|
||||
subserver.sendPlayer(player);
|
||||
} else {
|
||||
SubserverSystem.sendDeniedMessage(player, bauserver.getOwner());
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + DENY_MESSAGE);
|
||||
Message.send("JOIN_PLAYER_BLOCK", player);
|
||||
}
|
||||
}
|
||||
}else if(serverPerm != null && !player.hasPermission(serverPerm)){
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + DENY_MESSAGE);
|
||||
Message.send("JOIN_PLAYER_BLOCK", player);
|
||||
}else if(serverPerm == null && !player.getGroups().contains("team")) {
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + DENY_MESSAGE);
|
||||
Message.send("JOIN_PLAYER_BLOCK", player);
|
||||
}else{
|
||||
player.connect(server);
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ UNKNOWN_PLAYER=§cDiesen Spieler gibt es nicht.
|
||||
UNKNOWN_TEAM=§cDieses Team gibt es nicht
|
||||
INVALID_TIME=§cUngültige Zeitangabe.
|
||||
JOIN_PLAYER_BLOCK=§cDu kannst diesem Spieler derzeit nicht folgen.
|
||||
CHECK_CHECKING=§cDu prüfst gerade eine Schematic!
|
||||
|
||||
#ModLoader blocker
|
||||
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
||||
@ -391,3 +392,8 @@ TEAM_EVENT_HOW_TO_LEAVE=§7Um die Teilnahme abzusagen, wiederhole den Befehl
|
||||
|
||||
#Team Color
|
||||
TEAM_COLOR_TITLE=§6Farbe wählen
|
||||
|
||||
#TpCommand
|
||||
TP_SYNTAX=§8/§etp §8[§7Spieler§8]
|
||||
TP_SYNTAX_EVENT=§8/§etp §8[§7Spieler §8oder §7Team§8]
|
||||
TP_NOT_FOUND=§cKonnte das angegebene Ziel nicht finden.
|
In neuem Issue referenzieren
Einen Benutzer sperren