Hotfix OutOfBoundsException
Dieser Commit ist enthalten in:
Ursprung
a71bf5683e
Commit
583760c036
@ -88,4 +88,8 @@ public class ArenaMode {
|
|||||||
public String getChatName(){
|
public String getChatName(){
|
||||||
return chatNames.get(0);
|
return chatNames.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasChatName(){
|
||||||
|
return !chatNames.isEmpty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,8 @@ public class FightCommand extends BasicCommand {
|
|||||||
TextComponent start = new TextComponent();
|
TextComponent start = new TextComponent();
|
||||||
TextComponent current = start;
|
TextComponent current = start;
|
||||||
for(ArenaMode mode : ArenaMode.getAllModes()){
|
for(ArenaMode mode : ArenaMode.getAllModes()){
|
||||||
|
if(!mode.hasChatName())
|
||||||
|
continue;
|
||||||
String command = precommand + mode.getChatName();
|
String command = precommand + mode.getChatName();
|
||||||
current.setBold(true);
|
current.setBold(true);
|
||||||
current.setColor(ChatColor.GRAY);
|
current.setColor(ChatColor.GRAY);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren