mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Fixed java ver method
This commit is contained in:
parent
0d11aa7cca
commit
c1f858534b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue