From 698881f34846931ffba0c5c5e3bc51fa69f8f87f Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 24 Nov 2013 09:10:28 +1300 Subject: [PATCH] Sorted the order the disguisehelp displays --- .../commands/DisguiseHelpCommand.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java index 84588400..9f9c21e6 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseHelpCommand.java @@ -65,6 +65,12 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { } catch (Exception ex) { ex.printStackTrace(); } + try { + enumHelp.add(new EnumHelp("Art", "Arts", ChatColor.RED + "/disguisehelp Art " + ChatColor.GREEN + + "- View all the painting arts you can use on a painting disguise", (Enum[]) Class.forName("org.bukkit.Art") + .getEnumConstants())); + } catch (Exception ex) { + } try { enumHelp.add(new EnumHelp("HorseColor", "Horse colors", ChatColor.RED + "/disguisehelp HorseColors " + ChatColor.GREEN + "- View all the colors you can use for a horses color", (Enum[]) Class.forName( @@ -83,18 +89,6 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { "org.bukkit.entity.Ocelot$Type").getEnumConstants())); } catch (Exception ex) { } - try { - enumHelp.add(new EnumHelp("Profession", "Villager professions", ChatColor.RED + "/disguisehelp Professions " - + ChatColor.GREEN + "- View all the professions you can set on a villager", (Enum[]) Class.forName( - "org.bukkit.entity.Villager$Profession").getEnumConstants())); - } catch (Exception ex) { - } - try { - enumHelp.add(new EnumHelp("Art", "Arts", ChatColor.RED + "/disguisehelp Art " + ChatColor.GREEN - + "- View all the painting arts you can use on a painting disguise", (Enum[]) Class.forName("org.bukkit.Art") - .getEnumConstants())); - } catch (Exception ex) { - } try { ArrayList enumReturns = new ArrayList(); for (PotionEffectType potionType : PotionEffectType.values()) { @@ -108,6 +102,12 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand { } catch (Exception ex) { ex.printStackTrace(); } + try { + enumHelp.add(new EnumHelp("Profession", "Villager professions", ChatColor.RED + "/disguisehelp Professions " + + ChatColor.GREEN + "- View all the professions you can set on a villager", (Enum[]) Class.forName( + "org.bukkit.entity.Villager$Profession").getEnumConstants())); + } catch (Exception ex) { + } } @Override