Archiviert
1
0

Hotfix adding missing random

Dieser Commit ist enthalten in:
Lixfel 2020-01-19 06:45:06 +01:00
Ursprung 32c1093491
Commit ddef07b3a6

Datei anzeigen

@ -67,6 +67,16 @@ public class FightCommand extends BasicCommand {
private static void getMaps(CommandSender sender, String precommand, ArenaMode mode){ private static void getMaps(CommandSender sender, String precommand, ArenaMode mode){
TextComponent start = new TextComponent(); TextComponent start = new TextComponent();
TextComponent current = start; 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()){ for(String map : mode.getMaps()){
String command = precommand + mode.getChatName() + " " + map; String command = precommand + mode.getChatName() + " " + map;
current.setBold(true); current.setBold(true);