diff --git a/src/com/massivecraft/massivecore/command/HelpCommand.java b/src/com/massivecraft/massivecore/command/HelpCommand.java index 90fb3578..95fc8d3f 100644 --- a/src/com/massivecraft/massivecore/command/HelpCommand.java +++ b/src/com/massivecraft/massivecore/command/HelpCommand.java @@ -3,6 +3,7 @@ package com.massivecraft.massivecore.command; import java.util.ArrayList; import java.util.List; +import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; @@ -46,9 +47,9 @@ public class HelpCommand extends MassiveCommand // Create Lines List lines = new ArrayList(); - for (String helpline : parent.getHelp()) + for (Object helpline : parent.getHelp()) { - lines.add(Mson.parse("# " + helpline)); + lines.add(mson(Mson.parse("# "), helpline).color(ChatColor.YELLOW)); } for (MassiveCommand child : parent.getChildren()) diff --git a/src/com/massivecraft/massivecore/command/MassiveCommand.java b/src/com/massivecraft/massivecore/command/MassiveCommand.java index 546e2a9d..1352fe4c 100644 --- a/src/com/massivecraft/massivecore/command/MassiveCommand.java +++ b/src/com/massivecraft/massivecore/command/MassiveCommand.java @@ -165,7 +165,7 @@ public class MassiveCommand implements Active, PluginIdentifiableCommand protected String descPermission = null; // Free text displayed at the top of the help command. - protected List help = new ArrayList(); + protected List help = new ArrayList<>(); // The visibility of this command in help command. protected Visibility visibility = Visibility.VISIBLE; @@ -769,9 +769,9 @@ public class MassiveCommand implements Active, PluginIdentifiableCommand return null; } - public void setHelp(List val) { this.help = val; } - public void setHelp(String... val) { this.help = Arrays.asList(val); } - public List getHelp() { return this.help; } + public void setHelp(List val) { this.help = val; } + public void setHelp(Object... val) { this.help = Arrays.asList(val); } + public List getHelp() { return this.help; } public Visibility getVisibility() { return this.visibility; } public void setVisibility(Visibility visibility) { this.visibility = visibility; }