Hotfix adding missing random
Dieser Commit ist enthalten in:
Ursprung
32c1093491
Commit
ddef07b3a6
@ -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);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren