Skip to content

Permissions Library

AddUserGroup

The AddUserGroup method will assign playerId the specified groupName

Github Location

AddUserGroup

CreateGroup

The CreateGroup method will create a group with the specified groupName and assign it the GroupData class which holds groupTitle and groupRank

Github Location

CreateGroup

Export

The Export method will save GroupData and UserData to oxide/data

GroupData contains rank, title and perms

UserData contains groups, nickname and perms

Github Location

Export

GetGroupData

The GetGroupData method returns the GroupData of groupName

Github Location

GetGroupData

GetGroupParent

The GetGroupParent method will return the Parent Group of groupName

Github Location

GetGroupParent

GetGroupPermissions

The GetGroupPermissions method will return the permissions assigned to groupName

Github Location

GetGroupPermissions

GetGroupRank

The GetGroupRank method will return the rank of groupName

Github Location

GetGroupRank

GetGroups

The GetGroups method will return every created group

Github Location

GetGroups

GetGroupTitle

The GetGroupTitle method will return the title of groupName

Github Location

GetGroupTitle

GetPermissionGroups

The GetPermissionGroups method will return every group which is assigned permission

Github Location

GetPermissionGroups

GetPermissions

The GetPermissions method will return every registered permission

Github Location

GetPermissions

GetPermissionUsers

The GetPermissionUsers method will return every user who has been assigned permission

Github Location

GetPermissionUsers

GetUserData

The GetUserData method will return the UserData of playerId

Github Location

GetUserData

GetUserGroups

The GetUserGroups method will return every group playerId is assigned to.

Github Location

GetUserGroups

GetUserPermissions

The GetUserPermissions method will return the permissions assigned to playerId

Github Location

GetUserPermissions

GetUsersInGroup

The GetUsersInGroup method will return every user assigned to groupName

Github Location

GetUsersInGroup

GrantGroupPermission

The GrantGroupPermission method will assign permission to the specified groupName

Github Location

GrantGroupPermission

GrantUserPermission

The GrantUserPermission method will assign the specified permission to the specified playerId

Github Location

GrantUserPermission

GroupExists

The GroupExists method will return true if the specified groupName exists

Github Location

GroupExists

GroupHasPermission

The GroupHasPermission method will return true if the specified groupName has been assigned permission

Github Location

GroupHasPermission

GroupsHavePermission

The GroupsHavePermission method will return true if any of the specified groupNames have been assigned the specified permission

Github Location

GroupsHavePermission

MigrateGroup

The MigrateGroup method will copy everything from oldGroupName and transfer it to newGroupName

Github Location

MigrateGroup

PermissionExists

The PermissionExists method will return true if permission has been registered

Github Location

PermissionExists

RegisterPermission

The RegisterPermission method will register permission for use in plugins/assignability to players and/or groups

Github Location

RegisterPermission

RemoveGroup

The RemoveGroup method will remove the groupName from the groupsData

Github Location

RemoveGroup

RemoveUserGroup

The RemoveUserGroup method will remove the groupName assigned to playerId

Github Location

RemoveUserGroup

RevokeGroupPermission

The RevokeGroupPermission method will revoke the permission assigned to groupName

Github Location

RevokeGroupPermission

SetGroupParent

The SetGroupParent method will set the groupParent of groupName as parentGroupName

Github Location

SetGroupParent

SetGroupRank

The SetGroupRank method will set the groupRank of groupName

Github Location

SetGroupRank

SetGroupTitle

The SetGroupTitle method will set the groupTitle of groupName

Github Location

SetGroupTitle

UpdateNickname

The UpdateNickname method will update the nickname of playerId with playerName

Github Location

UpdateNickname

UserExists

The UserExists method will return true if playerId has any UserData

Github Location

UserExists

UserHasAnyGroup

The UserHasAnyGroup method will return true if playerId has been assigned one or more group(s)

Github Location

UserHasAnyGroup

UserHasGroup

The UserHasGroup method will return true if groupName has been assigned to playerId

Github Location

UserHasGroup

UserHasPermission

The UserHasPermission method will return true if permission has been assigned to playerId

Github Location

UserHasPermission

Released under the MIT License.