From ee60cdeb0f2dd174e7f8233b89c69a7427678068 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Sep 2011 19:35:58 +0100 Subject: [PATCH] Fixed java ver method By: Dinnerbone --- paper-api/src/main/java/org/bukkit/command/Command.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/command/Command.java b/paper-api/src/main/java/org/bukkit/command/Command.java index 227c3c150c..002e112957 100644 --- a/paper-api/src/main/java/org/bukkit/command/Command.java +++ b/paper-api/src/main/java/org/bukkit/command/Command.java @@ -79,7 +79,7 @@ public abstract class Command { * @return true if they can use it, otherwise false */ public boolean testPermission(CommandSender target) { - if ((permission == null) || (permission.isEmpty()) || (target.hasPermission(permission))) { + if ((permission == null) || (permission.length() == 0) || (target.hasPermission(permission))) { return true; }