Read desc

Convert the disguisetype to use entitytypes dymanically set when the
disguisetypes are loaded, so if the entitytype doesn't exist. The plugin
will still load.
This commit is contained in:
libraryaddict
2013-11-23 03:15:07 +13:00
parent ce14a91e9a
commit 1818f5f1e6
5 changed files with 123 additions and 76 deletions

View File

@@ -67,6 +67,9 @@ public class DisguiseHelpCommand extends BaseDisguiseCommand {
}
DisguiseType type = null;
for (DisguiseType disguiseType : DisguiseType.values()) {
if (disguiseType.getEntityType() == null) {
continue;
}
if (args[0].equalsIgnoreCase(disguiseType.name())
|| disguiseType.name().replace("_", "").equalsIgnoreCase(args[0])) {
type = disguiseType;