mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-03 06:57:41 +01:00
Fixed permission check.
This commit is contained in:
parent
f28936948a
commit
c2e37ad2ae
@ -126,8 +126,12 @@ public class User {
|
|||||||
return playerUUID;
|
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() {
|
public boolean isOnline() {
|
||||||
|
@ -2,8 +2,6 @@ package us.tastybento.bskyblock.commands.island.teams;
|
|||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
|
|
||||||
import us.tastybento.bskyblock.api.commands.CompositeCommand;
|
import us.tastybento.bskyblock.api.commands.CompositeCommand;
|
||||||
import us.tastybento.bskyblock.api.commands.User;
|
import us.tastybento.bskyblock.api.commands.User;
|
||||||
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
|
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
|
||||||
|
Loading…
Reference in New Issue
Block a user