1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 20:41:37 +02:00

change checkPermissionExists to how Elgarl wants it

This commit is contained in:
Necrodoom
2013-06-14 10:30:03 +03:00
parent 6ea835e96f
commit c902155d6e

View File

@@ -2107,13 +2107,13 @@ public class GroupManager extends JavaPlugin {
{
sender.sendMessage(ChatColor.RED + "The " + type + " already has an exception for this node.");
sender.sendMessage(ChatColor.RED + "Node: " + oldPerm.accessLevel);
return true;
return false;
}
else if (oldPerm.resultType.equals(PermissionCheckResult.Type.NEGATION))
{
sender.sendMessage(ChatColor.RED + "The " + type + " already has a matching negated node.");
sender.sendMessage(ChatColor.RED + "Node: " + oldPerm.accessLevel);
return true;
return false;
}
else if (oldPerm.resultType.equals(PermissionCheckResult.Type.FOUND))
{