Fixed long name PotionEffect Types in disguisehelp
This commit is contained in:
parent
84572a1cb2
commit
91dbd07f2a
@ -48,7 +48,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
|
|||||||
enums = Profession.values();
|
enums = Profession.values();
|
||||||
enumName = "Villager professions";
|
enumName = "Villager professions";
|
||||||
} else if (args[0].equalsIgnoreCase("PotionEffect") || args[0].equalsIgnoreCase("PotionEffects")) {
|
} else if (args[0].equalsIgnoreCase("PotionEffect") || args[0].equalsIgnoreCase("PotionEffects")) {
|
||||||
enumName = "Potioneffect types";
|
enumName = "Potioneffects";
|
||||||
for (PotionEffectType potionType : PotionEffectType.values()) {
|
for (PotionEffectType potionType : PotionEffectType.values()) {
|
||||||
if (potionType != null)
|
if (potionType != null)
|
||||||
enumReturns.add(toReadable(potionType.getName()) + ChatColor.RED + "(" + ChatColor.GREEN
|
enumReturns.add(toReadable(potionType.getName()) + ChatColor.RED + "(" + ChatColor.GREEN
|
||||||
@ -105,7 +105,7 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
|
|||||||
} else if (Profession.class == c) {
|
} else if (Profession.class == c) {
|
||||||
valueType = "Villager Profession";
|
valueType = "Villager Profession";
|
||||||
} else if (PotionEffectType.class == c) {
|
} else if (PotionEffectType.class == c) {
|
||||||
valueType = "Potioneffect Type";
|
valueType = "Potioneffect";
|
||||||
}
|
}
|
||||||
if (valueType != null) {
|
if (valueType != null) {
|
||||||
methods.add(ChatColor.RED + method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN
|
methods.add(ChatColor.RED + method.getName() + ChatColor.DARK_RED + "(" + ChatColor.GREEN
|
||||||
|
Loading…
Reference in New Issue
Block a user