summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido
diff options
context:
space:
mode:
authorNecrodoom <doomed.war@gmail.com>2013-02-26 12:27:05 +0200
committerNecrodoom <doomed.war@gmail.com>2013-02-26 12:27:05 +0200
commit48db088fb4723528822fac60560bb523afb8fc9a (patch)
tree79e6d1fe3afb007d7dd87fce2d169ad57eac8740 /EssentialsGroupManager/src/org/anjocaido
parentc1b4ed59208dbb5717f498dc80c1a8789b8101f2 (diff)
downloadEssentials-48db088fb4723528822fac60560bb523afb8fc9a.tar
Essentials-48db088fb4723528822fac60560bb523afb8fc9a.tar.gz
Essentials-48db088fb4723528822fac60560bb523afb8fc9a.tar.lz
Essentials-48db088fb4723528822fac60560bb523afb8fc9a.tar.xz
Essentials-48db088fb4723528822fac60560bb523afb8fc9a.zip
fix a few groupmanager.java errors
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index ac1fadb54..cc51ca269 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -674,7 +674,7 @@ public class GroupManager extends JavaPlugin {
}
auxGroup = dataHolder.getGroup(args[0]);
if (auxGroup != null) {
- sender.sendMessage(ChatColor.RED + "" + args[0] + " Group doesnt exist!");
+ sender.sendMessage(ChatColor.RED + "" + args[0] + " Group already exist!");
return true;
}
// Seems OK
@@ -770,8 +770,10 @@ public class GroupManager extends JavaPlugin {
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.FOUND)) {
sender.sendMessage(ChatColor.RED + "The user already has direct access to that permission.");
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
- if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
+ if (permissionResult.accessLevel.equalsIgnoreCase(args[1]))
+ {
return true;
+ }
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
// Warn only while still allowing you to add the node.
sender.sendMessage(ChatColor.RED + "The user already has a matching Negated node.");
@@ -1028,8 +1030,10 @@ public class GroupManager extends JavaPlugin {
sender.sendMessage(ChatColor.RED + "The group already has direct access to that permission.");
sender.sendMessage(ChatColor.RED + "Node: " + permissionResult.accessLevel);
// Abort adding if the node is a direct match.
- if (permissionResult.accessLevel.equalsIgnoreCase(args[1]));
+ if (permissionResult.accessLevel.equalsIgnoreCase(args[1]))
+ {
return true;
+ }
} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {
// Warn only while still allowing you to add the node.
sender.sendMessage(ChatColor.RED + "The group already has a matching Negated node.");