summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupBridge
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2011-11-25 19:33:32 +0000
committerElgarL <ElgarL@palmergames.com>2011-11-25 19:33:32 +0000
commitbefbb4d0e51db31270c9d7b42fc3e4c3b8983b08 (patch)
treed6a0c4a0517e7937af7496569f902e7945d0c9c5 /EssentialsGroupBridge
parentcb166b7db37b4d3168ad90e991656167bea75479 (diff)
downloadEssentials-befbb4d0e51db31270c9d7b42fc3e4c3b8983b08.tar
Essentials-befbb4d0e51db31270c9d7b42fc3e4c3b8983b08.tar.gz
Essentials-befbb4d0e51db31270c9d7b42fc3e4c3b8983b08.tar.lz
Essentials-befbb4d0e51db31270c9d7b42fc3e4c3b8983b08.tar.xz
Essentials-befbb4d0e51db31270c9d7b42fc3e4c3b8983b08.zip
Optimizations include changing the return of comparePermissionString.
Diffstat (limited to 'EssentialsGroupBridge')
-rw-r--r--EssentialsGroupBridge/src/org/anjocaido/groupmanager/permissions/NijikoPermissionsProxy.java4
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;
}