diff --git a/src/main/java/us/tastybento/bskyblock/api/commands/User.java b/src/main/java/us/tastybento/bskyblock/api/commands/User.java index 6e87b9b33..caa0692fc 100644 --- a/src/main/java/us/tastybento/bskyblock/api/commands/User.java +++ b/src/main/java/us/tastybento/bskyblock/api/commands/User.java @@ -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() { diff --git a/src/main/java/us/tastybento/bskyblock/commands/island/teams/IslandTeamUninviteCommand.java b/src/main/java/us/tastybento/bskyblock/commands/island/teams/IslandTeamUninviteCommand.java index 151136e1d..b3184275b 100644 --- a/src/main/java/us/tastybento/bskyblock/commands/island/teams/IslandTeamUninviteCommand.java +++ b/src/main/java/us/tastybento/bskyblock/commands/island/teams/IslandTeamUninviteCommand.java @@ -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;