Table of Contents

Class Permissions

Namespace
Exiled.Permissions.Extensions
Assembly
Exiled.Permissions.dll

Handles all plugin-related permissions, for executing commands, doing actions and so on.

public static class Permissions
Inheritance
Permissions
Inherited Members

Properties

DefaultGroup

Gets the default group.

public static Group DefaultGroup { get; }

Property Value

Group

Groups

Gets groups list.

public static Dictionary<string, Group> Groups { get; }

Property Value

Dictionary<string, Group>

Methods

CheckPermission(CommandSender, string)

Checks a sender's permission.

public static bool CheckPermission(this CommandSender sender, string permission)

Parameters

sender CommandSender

The sender to be checked.

permission string

The permission to be checked.

Returns

bool

Returns a value indicating whether the user has the permission.

CheckPermission(ICommandSender, string)

Checks a sender's permission.

public static bool CheckPermission(this ICommandSender sender, string permission)

Parameters

sender ICommandSender

The sender to be checked.

permission string

The permission to be checked.

Returns

bool

Returns a value indicating whether the user has the permission.

CheckPermission(Player, params PlayerPermissions[])

Checks a player's permission.

public static bool CheckPermission(this Player player, params PlayerPermissions[] permissions)

Parameters

player Player

The player to be checked.

permissions PlayerPermissions[]

The permission for checking.

Returns

bool

Returns a value indicating whether the user has the permission.

CheckPermission(Player, string)

Checks a player's permission.

public static bool CheckPermission(this Player player, string permission)

Parameters

player Player

The player to be checked.

permission string

The permission to be checked.

Returns

bool

true if the player's current or native group has permissions; otherwise, false.

Create()

Create permissions.

public static void Create()

Reload()

Reloads permissions.

public static void Reload()

Save()

Save permissions.

public static void Save()