Add ConnectionListener MultiLang
Dieser Commit ist enthalten in:
Ursprung
85bc8aa3ec
Commit
fa9f4f7e79
@ -20,6 +20,7 @@
|
||||
package de.steamwar.bungeecore.listeners;
|
||||
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import de.steamwar.bungeecore.Message;
|
||||
import de.steamwar.bungeecore.Servertype;
|
||||
import de.steamwar.bungeecore.Subserver;
|
||||
import de.steamwar.bungeecore.commands.ChallengeCommand;
|
||||
@ -83,16 +84,14 @@ public class ConnectionListener extends BasicListener {
|
||||
if(subserver.getType() == Servertype.ARENA){
|
||||
Iterator<ProxiedPlayer> it = subserver.getServer().getPlayers().iterator();
|
||||
if(it.hasNext()){
|
||||
TextComponent tc = new TextComponent(BungeeCore.CHAT_PREFIX + "§7Klicke §ehier§7, um §e" + subserver.getServer().getName() + " §7beizutreten");
|
||||
tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eArena beitreten").create()));
|
||||
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + it.next().getName()));
|
||||
player.sendMessage(tc);
|
||||
Message.send("JOIN_ARENA", player, Message.parse("JOIN_ARENA_HOVER", player),
|
||||
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + it.next().getName()), subserver.getServer().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(newPlayers.contains(player.getUniqueId())){
|
||||
BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7Begrüßt alle mal §e" + player.getName() + " §7auf dem Server§8!");
|
||||
Message.broadcast("JOIN_FIRST", player.getName());
|
||||
newPlayers.remove(player.getUniqueId());
|
||||
}
|
||||
}
|
||||
|
@ -434,4 +434,9 @@ CHAT_BC_SYNTAX=§8/§e{0} §8[§7Nachricht§8]
|
||||
CHAT_BC_NO_COMMANDS=§cKeine Befehle mit /local möglich.
|
||||
|
||||
#CheckListner
|
||||
CHECK_UNCHECKED=§7Du hast noch §e{0} §7ungeprüfte Schematic§8(§7s§8)!
|
||||
CHECK_UNCHECKED=§7Du hast noch §e{0} §7ungeprüfte Schematic§8(§7s§8)!
|
||||
|
||||
#ConnectionListener
|
||||
JOIN_ARENA=§7Klicke §ehier§7, um §e{0} §7beizutreten
|
||||
JOIN_ARENA_HOVER=§eArena beitreten
|
||||
JOIN_FIRST=§7Begrüßt alle mal §e{0} §7auf dem Server§8!
|
In neuem Issue referenzieren
Einen Benutzer sperren