Fixed perms not using backslashes

This commit is contained in:
Andrew 2013-11-18 16:06:29 +13:00
parent e0240c1044
commit 1a4507893f

View File

@ -33,10 +33,10 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
perm = perm.substring(permissionNode.length()); perm = perm.substring(permissionNode.length());
for (DisguiseType type : DisguiseType.values()) { for (DisguiseType type : DisguiseType.values()) {
String name = type.name().toLowerCase(); String name = type.name().toLowerCase();
if (perm.split("//.")[0].equals("*") && permission.getValue()) { if (perm.split("\\.")[0].equals("*") && permission.getValue()) {
if (!names.contains(name)) if (!names.contains(name))
names.add(name); names.add(name);
} else if (perm.split("//.")[0].equals(name)) { } else if (perm.split("\\.")[0].equals(name)) {
if (permission.getValue()) { if (permission.getValue()) {
if (!names.contains(name)) if (!names.contains(name))
names.add(name); names.add(name);