From 42db4ba10031b390188d12114b3de6aa8abd8f4e Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 13 Apr 2019 22:07:45 +0200 Subject: [PATCH] hotfixes Signed-off-by: Yaruma3341 --- src/me/yaruma/fightsystem/listener/PlayerJoinListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java b/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java index cbfa9dd..7428904 100644 --- a/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java +++ b/src/me/yaruma/fightsystem/listener/PlayerJoinListener.java @@ -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);