From 902c4bb63a7b5a3e359f991e0d180cdbb9fa77e8 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 24 Apr 2019 07:14:36 +0200 Subject: [PATCH] Small improvements --- src/de/warking/bungeecore/arenasystem/Arena.java | 10 +++++++--- src/de/warking/bungeecore/commands/FightCommand.java | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/de/warking/bungeecore/arenasystem/Arena.java b/src/de/warking/bungeecore/arenasystem/Arena.java index 18daaee..a3a295b 100644 --- a/src/de/warking/bungeecore/arenasystem/Arena.java +++ b/src/de/warking/bungeecore/arenasystem/Arena.java @@ -53,7 +53,7 @@ public class Arena implements Runnable{ public void sendPlayer(ProxiedPlayer p){ if(!started){ - p.sendMessage(BungeeCore.ChatPrefix + "Die Arena wird gestartet, einen Moment bitte..."); + p.sendMessage(BungeeCore.ChatPrefix + "§7Die Arena wird gestartet, einen Moment bitte..."); cachedPlayers.add(p); }else{ p.connect(server); @@ -123,8 +123,12 @@ public class Arena implements Runnable{ Thread.sleep(200); - for(ProxiedPlayer aP : cachedPlayers){ - sendPlayer(aP); + sendPlayer(cachedPlayers.get(0)); + + Thread.sleep(1000); + + for(int i = 1; i < cachedPlayers.size(); i++){ + sendPlayer(cachedPlayers.get(i)); } cachedPlayers.clear(); diff --git a/src/de/warking/bungeecore/commands/FightCommand.java b/src/de/warking/bungeecore/commands/FightCommand.java index 39e779a..b8e7b26 100644 --- a/src/de/warking/bungeecore/commands/FightCommand.java +++ b/src/de/warking/bungeecore/commands/FightCommand.java @@ -57,7 +57,7 @@ public class FightCommand extends Command { } arena.sendPlayer(player); - TextComponent tc = new TextComponent(BungeeCore.ChatPrefix + "§7Klicke §6hier§7, um §6" + arena.spielModus + " §7gegen §6" + player.getName() + " §7zu kämpfen!"); + TextComponent tc = new TextComponent(BungeeCore.ChatPrefix + "§7Klicke §6hier§7, um §6" + arena.spielModus + " §7gegen §6" + player.getName() + " §7zu §7kämpfen!"); tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§aGegen §7" + player.getName() + " §ckämpfen").create())); tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + player.getName())); ProxyServer.getInstance().broadcast(tc);