diff options
Diffstat (limited to 'src/main/java/org/bukkit/permissions/PermissionAttachment.java')
-rw-r--r-- | src/main/java/org/bukkit/permissions/PermissionAttachment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/permissions/PermissionAttachment.java b/src/main/java/org/bukkit/permissions/PermissionAttachment.java index b2a44d51..9849261d 100644 --- a/src/main/java/org/bukkit/permissions/PermissionAttachment.java +++ b/src/main/java/org/bukkit/permissions/PermissionAttachment.java @@ -83,7 +83,7 @@ public class PermissionAttachment { * @param value New value of the permission */ public void setPermission(String name, boolean value) { - permissions.put(name.toLowerCase(), value); + permissions.put(name.toLowerCase(java.util.Locale.ENGLISH), value); permissible.recalculatePermissions(); } @@ -106,7 +106,7 @@ public class PermissionAttachment { * @param name Name of the permission to remove */ public void unsetPermission(String name) { - permissions.remove(name.toLowerCase()); + permissions.remove(name.toLowerCase(java.util.Locale.ENGLISH)); permissible.recalculatePermissions(); } |