summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-04-05 15:02:08 +0100
committerElgarL <ElgarL@palmergames.com>2012-04-05 15:02:08 +0100
commitf7bc04bc347c088d35ee5a939c026f28b2ce0c19 (patch)
tree7321bfcd8831e3c603a9e241fc32d4fd81efcc28 /EssentialsGroupManager/src/org/anjocaido
parent381886245b7070e989acb12442a8aa6f6f1d5009 (diff)
downloadEssentials-f7bc04bc347c088d35ee5a939c026f28b2ce0c19.tar
Essentials-f7bc04bc347c088d35ee5a939c026f28b2ce0c19.tar.gz
Essentials-f7bc04bc347c088d35ee5a939c026f28b2ce0c19.tar.lz
Essentials-f7bc04bc347c088d35ee5a939c026f28b2ce0c19.tar.xz
Essentials-f7bc04bc347c088d35ee5a939c026f28b2ce0c19.zip
Fix an error I caused trying to modify an unmodifiable list when parsing
'*' permissions.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
index 08240441d..b40694bb0 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java
@@ -155,8 +155,10 @@ public class AnjoPermissionsHandler extends PermissionsReaderInterface {
return playerPermArray;
}
- private Set<String> populatePerms (List<String> perms, boolean includeChildren) {
+ private Set<String> populatePerms (List<String> permsList, boolean includeChildren) {
+ // Create a new array so it's modifiable.
+ List<String> perms = new ArrayList<String>(permsList);
Set<String> permArray = new HashSet<String>();
Boolean allPerms = false;