From 63dc4b52b31d10e0a02fc2520ccc2546c5793e69 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 13 Jan 2013 12:25:50 +0100 Subject: [PATCH] Convert name to lower case for removePermission; Fixes BUKKIT-3726 Permissions are stored as lower case names and referenced as such in all appropriate methods but removePermission. This changes removePermission to also convert names to lower case to be consistent with the rest of the API. By: Max A --- .../src/main/java/org/bukkit/plugin/SimplePluginManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java index d4f6bf342f..8224d299b3 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -581,11 +581,11 @@ public final class SimplePluginManager implements PluginManager { } public void removePermission(Permission perm) { - removePermission(perm.getName().toLowerCase()); + removePermission(perm.getName()); } public void removePermission(String name) { - permissions.remove(name); + permissions.remove(name.toLowerCase()); } public void recalculatePermissionDefaults(Permission perm) {