diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-25 19:33:32 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-25 19:33:32 +0000 |
commit | b25a8f059b4d383b21d789aefbd3e3273503c0ba (patch) | |
tree | 4ac7ae1d6afb3e2d8708ee3fa5485920d8b3c0e6 /EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions | |
parent | 0cb77d8a03abc0879bec537bd672e09050c16a9e (diff) | |
download | Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.gz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.lz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.tar.xz Essentials-b25a8f059b4d383b21d789aefbd3e3273503c0ba.zip |
Optimizations include changing the return of comparePermissionString.
Diffstat (limited to 'EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions')
-rw-r--r-- | EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java b/EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java index e72666cf7..da40fc172 100644 --- a/EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java +++ b/EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java @@ -521,10 +521,10 @@ public class NijikoPermissionsProxy extends PermissionHandler { @Override public boolean has(String world, String playerName, String permission) { - if (permission == null || permission.equals("")) { + if (permission == null || permission.isEmpty()) { return false; } - if (playerName == null || playerName == "") { + if (playerName == null || playerName.isEmpty()) { GroupManager.logger.severe("A plugin is asking permission '" + permission + "' for a null player... Which plugin does that? Bastards!"); return false; } |