summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-03-28 13:10:17 +0000
committerElgarL <ElgarL@palmergames.com>2013-03-28 13:10:17 +0000
commita363fbf56461c855661f16816e8f753f74e4c1b4 (patch)
tree47e5f85b28ce4547c4b9ecfca16bddf672d2f1e2 /EssentialsGroupManager/src
parent0ad3baa51707a21eece034670d1a60a4fb80dead (diff)
downloadEssentials-a363fbf56461c855661f16816e8f753f74e4c1b4.tar
Essentials-a363fbf56461c855661f16816e8f753f74e4c1b4.tar.gz
Essentials-a363fbf56461c855661f16816e8f753f74e4c1b4.tar.lz
Essentials-a363fbf56461c855661f16816e8f753f74e4c1b4.tar.xz
Essentials-a363fbf56461c855661f16816e8f753f74e4c1b4.zip
Fix loops.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index e27389d7a..10e970de9 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -875,14 +875,14 @@ public class GroupManager extends JavaPlugin {
sender.sendMessage(ChatColor.RED + "You can't modify a player with same group as you, or higher.");
return true;
}
- for (auxString : auxUser.getPermissionList()) {
- permissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);
+ for (String perm : auxUser.getPermissionList()) {
+ permissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);
if (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {
- sender.sendMessage(ChatColor.RED + "You can't remove a permission you don't have: '" + auxString + "'.");
+ sender.sendMessage(ChatColor.RED + "You can't remove a permission you don't have: '" + perm + "'.");
}
else
{
- auxUser.removePermission(auxString);
+ auxUser.removePermission(perm);
}
}
sender.sendMessage(ChatColor.YELLOW + "You removed all permissions from player '" + auxUser.getName() + "'.");
@@ -1159,14 +1159,14 @@ public class GroupManager extends JavaPlugin {
return true;
}
- for (auxString : auxGroup.getPermissionList()) {
- permissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);
+ for (String perm : auxGroup.getPermissionList()) {
+ permissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);
if (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {
- sender.sendMessage(ChatColor.RED + "Can't remove a permission you don't have: '" + auxString + "'.");
+ sender.sendMessage(ChatColor.RED + "Can't remove a permission you don't have: '" + perm + "'.");
}
else
{
- auxGroup.removePermission(auxString);
+ auxGroup.removePermission(perm);
}
}
sender.sendMessage(ChatColor.YELLOW + "You removed all permissions from group '" + auxGroup.getName() + "'.");