Property | Type | Description | |
---|---|---|---|
DefaultRank | Rank |
Property | Type | Description | |
---|---|---|---|
CheckIfPlayerDBLoaded | void | ||
DefineDefaultRanks | XElement | ||
FindRank | Rank | ||
FindRank | Rank | ||
FindRank | Rank | ||
GenerateId | string | ||
GetMinRankWithAllPermissions | Rank | ||
GetMinRankWithAnyPermission | Rank | ||
ParsePermissionLimits | void | ||
RankManager | System | ||
RebuildIndex | void | ||
Reset | void | ||
SortRanksByLegacyNumericRank | void |
Method | Description | |
---|---|---|
AddRank ( Rank rank ) : void |
Adds a new rank to the list. Checks for duplicates.
|
|
AddRank ( [ rank ) : void |
Adds a new rank to the list. Checks for duplicates.
|
|
AddRank ( [ newRank, int desiredIndex ) : void |
Adds a new rank to the list at the desired position in the hierarchy. Checks for duplicates.
|
|
CanRenameRank ( Rank rank, string newName ) : bool | ||
CanRenameRank ( [ rank, [ newName ) : bool | ||
DeleteRank ( Rank deletedRank, Rank replacementRank ) : bool | ||
DeleteRank ( [ deletedRank, [ replacementRank ) : bool | ||
GenerateID ( ) : string | ||
GetIndex ( Rank rank ) : int | ||
GetMinRankWithPermission ( ) : Rank |
Finds the lowest rank that has all the required permissions.
|
|
LowerRank ( Rank rank ) : bool | ||
LowerRank ( [ rank ) : bool | ||
ParseRank ( string name ) : Rank |
Parses serialized rank. Accepts either the "name" or "name#ID" format. Uses legacy rank mapping table for unrecognized ranks. Does not autocomple.
|
|
RaiseRank ( Rank rank ) : bool | ||
RaiseRank ( [ rank ) : bool | ||
RenameRank ( Rank rank, string newName ) : void | ||
RenameRank ( [ rank, [ newName ) : void | ||
ResetToDefaults ( ) : void |
Resets the list of ranks to defaults (guest/builder/op/owner). Warning: This method is not thread-safe, and should never be used on a live server.
|
Method | Description | |
---|---|---|
CheckIfPlayerDBLoaded ( ) : void | ||
DefineDefaultRanks ( ) : XElement | ||
FindRank ( [ name ) : Rank | ||
FindRank ( int index ) : Rank | ||
FindRank ( string name ) : Rank | ||
GenerateId ( ) : string | ||
GetMinRankWithAllPermissions ( ) : Rank | ||
GetMinRankWithAnyPermission ( ) : Rank | ||
ParsePermissionLimits ( ) : void | ||
RankManager ( ) : System | ||
RebuildIndex ( ) : void | ||
Reset ( ) : void |
Clears the list of ranks.
|
|
SortRanksByLegacyNumericRank ( ) : void |
public static AddRank ( [ newRank, int desiredIndex ) : void | ||
newRank | [ | Rank to add to the list. |
desiredIndex | int | Desired rank index (zero-based). |
return | void |
public static CanRenameRank ( Rank rank, string newName ) : bool | ||
rank | Rank | |
newName | string | |
return | bool |
public static CanRenameRank ( [ rank, [ newName ) : bool | ||
rank | [ | |
newName | [ | |
return | bool |
public static DeleteRank ( Rank deletedRank, Rank replacementRank ) : bool | ||
deletedRank | Rank | |
replacementRank | Rank | |
return | bool |
public static DeleteRank ( [ deletedRank, [ replacementRank ) : bool | ||
deletedRank | [ | |
replacementRank | [ | |
return | bool |
public static GetMinRankWithPermission ( ) : Rank | ||
return | Rank |
public static ParseRank ( string name ) : Rank | ||
name | string | Full rank name |
return | Rank |
public static RenameRank ( Rank rank, string newName ) : void | ||
rank | Rank | |
newName | string | |
return | void |
public static RenameRank ( [ rank, [ newName ) : void | ||
rank | [ | |
newName | [ | |
return | void |