mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 00:58:04 +01:00
Fixed permission check.
This commit is contained in:
parent
f28936948a
commit
c2e37ad2ae
@ -126,8 +126,12 @@ public class User {
|
||||
return playerUUID;
|
||||
}
|
||||
|
||||
public boolean hasPermission(String string) {
|
||||
return string == null ? false : sender.hasPermission(string);
|
||||
/**
|
||||
* @param permission
|
||||
* @return true if permission is empty or if the player has that permission
|
||||
*/
|
||||
public boolean hasPermission(String permission) {
|
||||
return permission.isEmpty() ? true : sender.hasPermission(permission);
|
||||
}
|
||||
|
||||
public boolean isOnline() {
|
||||
|
@ -2,8 +2,6 @@ package us.tastybento.bskyblock.commands.island.teams;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
import us.tastybento.bskyblock.api.commands.CompositeCommand;
|
||||
import us.tastybento.bskyblock.api.commands.User;
|
||||
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
|
||||
|
Loading…
Reference in New Issue
Block a user