Fixed disguise options code from not working for all disguises

This commit is contained in:
libraryaddict 2020-01-22 19:28:12 +13:00
parent da20612ae9
commit f7f551caa8
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -246,13 +246,6 @@ public class DisguiseParser {
private static HashMap<String, Boolean> getDisguiseOptions(CommandSender sender, String permNode,
DisguisePerm type) {
switch (type.getType()) {
case PLAYER:
case FALLING_BLOCK:
case PAINTING:
case SPLASH_POTION:
case FISHING_HOOK:
case DROPPED_ITEM:
HashMap<String, Boolean> returns = new HashMap<>();
String beginning = "libsdisguises.options." + permNode.toLowerCase() + ".";
@ -274,9 +267,6 @@ public class DisguiseParser {
}
return returns;
default:
return new HashMap<>();
}
}
public static DisguisePerm getDisguisePerm(String name) {