Small improvements
Dieser Commit ist enthalten in:
Ursprung
2aa917de07
Commit
902c4bb63a
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren