server.permissions
The permissions the player has granted to the current server.
Functions
server.permissions.getAll | Returns all known permissions. |
server.permissions.grant | Grants a permission to the current server. |
server.permissions.isGranted | Checks if a permission is granted to the current server. |
server.permissions.revoke | Revokes a permission from the current server. |
#server.permissions.getAll
function server.permissions.getAll(): table<string, table>
Returns all known permissions.
Returns
| Type | Name | Description |
|---|---|---|
table<string, table> |
#server.permissions.grant
function server.permissions.grant(permission: string, temporary: boolean)
Grants a permission to the current server.
Parameters
| Name | Type | Description |
|---|---|---|
permission | string | |
temporary | boolean |
#server.permissions.isGranted
function server.permissions.isGranted(permission: string): boolean
Checks if a permission is granted to the current server.
Parameters
| Name | Type | Description |
|---|---|---|
permission | string |
Returns
| Type | Name | Description |
|---|---|---|
boolean |
#server.permissions.revoke
function server.permissions.revoke(permission: string, address: string)
Revokes a permission from the current server.
Parameters
| Name | Type | Description |
|---|---|---|
permission | string | |
address | string |