Class Permissions
Inheritance
System.Object
Permissions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Permissions.Extensions
Assembly: Exiled.Permissions.dll
Syntax
public static class Permissions
Properties
| Improve this Doc View SourceDefaultGroup
Gets the default group.
Declaration
public static Group DefaultGroup { get; }
Property Value
Type | Description |
---|---|
Group |
Groups
Gets groups list.
Declaration
public static Dictionary<string, Group> Groups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, Group> |
Methods
| Improve this Doc View SourceCheckPermission(CommandSender, String)
Checks a sender's permission.
Declaration
public static bool CheckPermission(this CommandSender sender, string permission)
Parameters
Type | Name | Description |
---|---|---|
CommandSender | sender | The sender to be checked. |
System.String | permission | The permission to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a value indicating whether the user has the permission or not. |
CheckPermission(ICommandSender, String)
Checks a sender's permission.
Declaration
public static bool CheckPermission(this ICommandSender sender, string permission)
Parameters
Type | Name | Description |
---|---|---|
CommandSystem.ICommandSender | sender | The sender to be checked. |
System.String | permission | The permission to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a value indicating whether the user has the permission or not. |
CheckPermission(Player, PlayerPermissions[])
Checks a player's permission.
Declaration
public static bool CheckPermission(this Player player, params PlayerPermissions[] permissions)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player to be checked. |
PlayerPermissions[] | permissions | The permission for checking. |
Returns
Type | Description |
---|---|
System.Boolean | Returns a value indicating whether the user has the permission or not. |
CheckPermission(Player, String)
Checks a player's permission.
Declaration
public static bool CheckPermission(this Player player, string permission)
Parameters
Type | Name | Description |
---|---|---|
Player | player | The player to be checked. |
System.String | permission | The permission to be checked. |
Returns
Type | Description |
---|---|
System.Boolean | true if the player's current or native group has permissions; otherwise, false. |
Create()
Create permissions.
Declaration
public static void Create()
Reload()
Reloads permissions.
Declaration
public static void Reload()
Save()
Save permissions.
Declaration
public static void Save()