Package me.hsgamer.bettergui.util
Class PlayerUtil
- java.lang.Object
-
- me.hsgamer.bettergui.util.PlayerUtil
-
public final class PlayerUtil extends Object
The utility class for player
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasAnyPermission(org.bukkit.entity.Player player, Collection<org.bukkit.permissions.Permission> permissions)Check if the player has one of the permissionsstatic booleanhasPermission(org.bukkit.entity.Player player, String permission)Check if the player has the permission
-
-
-
Method Detail
-
hasAnyPermission
public static boolean hasAnyPermission(org.bukkit.entity.Player player, Collection<org.bukkit.permissions.Permission> permissions)Check if the player has one of the permissions- Parameters:
player- the playerpermissions- the permissions- Returns:
- true if the player does
-
hasPermission
public static boolean hasPermission(org.bukkit.entity.Player player, String permission)Check if the player has the permission- Parameters:
player- the playerpermission- the permission. If it starts with "-", it will check if the player doesn't have the permission- Returns:
- true if the player does
-
-