diff --git a/src/de/steamwar/bungeecore/commands/FightCommand.java b/src/de/steamwar/bungeecore/commands/FightCommand.java index 6e3b783..bc203f2 100644 --- a/src/de/steamwar/bungeecore/commands/FightCommand.java +++ b/src/de/steamwar/bungeecore/commands/FightCommand.java @@ -67,6 +67,16 @@ public class FightCommand extends BasicCommand { private static void getMaps(CommandSender sender, String precommand, ArenaMode mode){ TextComponent start = new TextComponent(); TextComponent current = start; + if(mode.getMaps().size() > 1){ + String command = precommand + mode.getChatName() + " Random"; + start.setBold(true); + start.setColor(ChatColor.GRAY); + start.setText("Random "); + start.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§e" + command).create())); + start.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command)); + current = new TextComponent(); + } + for(String map : mode.getMaps()){ String command = precommand + mode.getChatName() + " " + map; current.setBold(true);