Player Permissions
This page will help you with checking if a player has a said permission or a group of permissions with wildcards.
Network_Player player;
if(player.HasPermission("worldprotection.breakblocks")){
// The player have the permission.
}else{
// The player does not have the permission.
// Here you might want to send them a chat message saying they don't have access.
}Network_Player player;
if(player.HasPermission("worldprotection.test")){
// This will be true in any of the following cases :
// The user have worldprotection.* permission.
// The user have *.* permission.
// Or the user just have worldprotection.test permission.
}Last updated