hotfixes
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
276a9c37fb
Commit
42db4ba100
@ -50,19 +50,18 @@ public class PlayerJoinListener implements Listener {
|
||||
publicList.setBold(true);
|
||||
publicList.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§ePrivate Liste...").create()));
|
||||
publicList.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/ak schemlist 0"));
|
||||
|
||||
publicList.addExtra(privateList);
|
||||
player.spigot().sendMessage(publicList);
|
||||
//TEXT COMPONENTS
|
||||
|
||||
if(!Fight.getRedTeam().hasTeamLeader()) {
|
||||
Fight.getRedTeam().setLeader(new FightPlayer(player, false));
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
player.spigot().sendMessage(publicList);
|
||||
player.spigot().sendMessage(privateList);
|
||||
} else if(!Fight.getBlueTeam().hasTeamLeader()) {
|
||||
Fight.getBlueTeam().setLeader(new FightPlayer(player, false));
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
player.spigot().sendMessage(publicList);
|
||||
player.spigot().sendMessage(privateList);
|
||||
} else {
|
||||
player.setGameMode(GameMode.SPECTATOR);
|
||||
player.teleport(Config.SpecSpawn);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren