Fixed java ver method

This commit is contained in:
Dinnerbone
2011-09-02 19:35:58 +01:00
parent 8831a00b4e
commit f319f09fb2

View File

@@ -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;
}