# About Player Permissions

There is a documentation for permission system that allows you to control what players can and cannot do.

Rebar exposes the same interface for both account and character permissions. This means that you can use almost the same code to check permissions regardless of the source.

Also, Rebar allows you to modify permissions when player is offline, with use of useVirtualDocument.

# Permission resolution order

When checking permissions, Rebar will check permissions in the following order:

  1. Account
  2. Account's groups
  3. Character
  4. Character's groups

This means that if you want to grant a permission to all player's characters, you should set it on the account level.

# Useful links

# Player permissions

Account permissions
../playerpermissions/#useaccount
Character permissions
../playerpermissions/#usecharacter
Virtual document permissions
../playerpermissions/#usevirtual

# Player groups

Account groups
../playergroups/#useaccount
Character groups
../playergroups/#usecharacter
Virtual document groups
../playergroups/#usevirtual

# Using groups

usePermissionGroup
../usepermissiongroup/

# Checking permissions

usePermissions
../usepermissions/
useEntityPermissions
../useentitypermissions/