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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user