> For the complete documentation index, see [llms.txt](https://rdswiki.raftmodding.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rdswiki.raftmodding.com/programming/player-permissions.md).

# Player Permissions

RDS have class extensions to Network\_Player and CSteamID.\
This means you can just call for example class.HasPermission() on them.\
Examples :

```csharp
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.
}
```

Permissions also supports wildcards, which means if a plugin have all its permissions starting with `worldprotection` for example, you can just give all permissions with `worldprotection.*`.\
Example :&#x20;

```csharp
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.
}
```
