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 {
|
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){
|
public static void onTp(ChatEvent e, String[] command){
|
||||||
if(!(e.getSender() instanceof ProxiedPlayer))
|
if(!(e.getSender() instanceof ProxiedPlayer))
|
||||||
return;
|
return;
|
||||||
@ -53,7 +51,7 @@ public class TpCommand extends BasicCommand {
|
|||||||
if(!(sender instanceof ProxiedPlayer))
|
if(!(sender instanceof ProxiedPlayer))
|
||||||
return;
|
return;
|
||||||
if(!onTp((ProxiedPlayer) sender, args))
|
if(!onTp((ProxiedPlayer) sender, args))
|
||||||
BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "§cKonnte das angegebene Ziel nicht finden.");
|
Message.send("TP_NOT_FOUND", sender);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -67,12 +65,12 @@ public class TpCommand extends BasicCommand {
|
|||||||
private static boolean onTp(ProxiedPlayer player, String[] args){
|
private static boolean onTp(ProxiedPlayer player, String[] args){
|
||||||
if(args.length == 0){
|
if(args.length == 0){
|
||||||
if(Event.get() == null)
|
if(Event.get() == null)
|
||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§8/§etp §8[§7Spieler§8]");
|
Message.send("TP_SYNTAX", player);
|
||||||
else
|
else
|
||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§8/§etp §8[§7Spieler §8oder §7Team§8]");
|
Message.send("TP_SYNTAX_EVENT", player);
|
||||||
return true;
|
return true;
|
||||||
}else if(CheckCommand.isChecking(player)){
|
}else if(CheckCommand.isChecking(player)){
|
||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu prüfst gerade eine Schematic!");
|
Message.send("CHECK_CHECKING", player);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,13 +126,13 @@ public class TpCommand extends BasicCommand {
|
|||||||
subserver.sendPlayer(player);
|
subserver.sendPlayer(player);
|
||||||
} else {
|
} else {
|
||||||
SubserverSystem.sendDeniedMessage(player, bauserver.getOwner());
|
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)){
|
}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")) {
|
}else if(serverPerm == null && !player.getGroups().contains("team")) {
|
||||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + DENY_MESSAGE);
|
Message.send("JOIN_PLAYER_BLOCK", player);
|
||||||
}else{
|
}else{
|
||||||
player.connect(server);
|
player.connect(server);
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ UNKNOWN_PLAYER=§cDiesen Spieler gibt es nicht.
|
|||||||
UNKNOWN_TEAM=§cDieses Team gibt es nicht
|
UNKNOWN_TEAM=§cDieses Team gibt es nicht
|
||||||
INVALID_TIME=§cUngültige Zeitangabe.
|
INVALID_TIME=§cUngültige Zeitangabe.
|
||||||
JOIN_PLAYER_BLOCK=§cDu kannst diesem Spieler derzeit nicht folgen.
|
JOIN_PLAYER_BLOCK=§cDu kannst diesem Spieler derzeit nicht folgen.
|
||||||
|
CHECK_CHECKING=§cDu prüfst gerade eine Schematic!
|
||||||
|
|
||||||
#ModLoader blocker
|
#ModLoader blocker
|
||||||
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
MODLOADER_INSTALLED=§7Du hast §e{0} §7installiert. Daher kannst du keinen Arenen beitreten.
|
||||||
@ -390,4 +391,9 @@ TEAM_EVENT_JOINED=§7Dein Team nimmt nun am Event §e{0} §7 teil!
|
|||||||
TEAM_EVENT_HOW_TO_LEAVE=§7Um die Teilnahme abzusagen, wiederhole den Befehl
|
TEAM_EVENT_HOW_TO_LEAVE=§7Um die Teilnahme abzusagen, wiederhole den Befehl
|
||||||
|
|
||||||
#Team Color
|
#Team Color
|
||||||
TEAM_COLOR_TITLE=§6Farbe wählen
|
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