diff --git a/src/de/steamwar/bungeecore/ArenaMode.java b/src/de/steamwar/bungeecore/ArenaMode.java index b198d808..a661712e 100644 --- a/src/de/steamwar/bungeecore/ArenaMode.java +++ b/src/de/steamwar/bungeecore/ArenaMode.java @@ -88,4 +88,8 @@ public class ArenaMode { public String getChatName(){ return chatNames.get(0); } + + public boolean hasChatName(){ + return !chatNames.isEmpty(); + } } diff --git a/src/de/steamwar/bungeecore/commands/FightCommand.java b/src/de/steamwar/bungeecore/commands/FightCommand.java index 88cfc6bf..d744552d 100644 --- a/src/de/steamwar/bungeecore/commands/FightCommand.java +++ b/src/de/steamwar/bungeecore/commands/FightCommand.java @@ -50,6 +50,8 @@ public class FightCommand extends BasicCommand { TextComponent start = new TextComponent(); TextComponent current = start; for(ArenaMode mode : ArenaMode.getAllModes()){ + if(!mode.hasChatName()) + continue; String command = precommand + mode.getChatName(); current.setBold(true); current.setColor(ChatColor.GRAY);