Groups Permission
The group system structure has been completed with hierarchy. Group System Commit You can add a group to a user only, which will apply to all of the user's characters. You can also add a group to a specific character only.
To check if a user has group permission, use the following methods:
API.AddUserToGroupByName
Add user to group by name
API.AddUserToGroupByName( userId, groupName )
API.RemoveUserFromGroupByName
Remove user from group by group name
API.RemoveUserFromGroupByName( userId, groupName )
API.AddCharacterToGroupByName
Add character to group by group name
API.AddCharacterToGroupByName( charId, groupName )
API.RemoveCharacterFromGroupByName
Remove character from group by group name
API.RemoveCharacterFromGroupByName( charId, groupName )
API.IsPlayerAceAllowedGroup
Returns true
or false
to check permission.
API.IsPlayerAceAllowedGroup( source, groupName)
API.IsUserAceAllowedGroup
API.IsUserAceAllowedGroup( userId, groupName )
API.IsCharacterAceAllowedGroup
API.IsCharacterAceAllowedGroup( charId, groupName )
API.IsPlayerAceAllowedGroupFlag
Returns true
or false
to check for additional flags. For example: API.IsPlayerAceAllowedGroupFlag(1, "law", "workshift")
Returns whether the user is on duty in the specified job.
API.IsPlayerAceAllowedGroupFlag( source, groupName, groupFlagName )
API.IsUserAceAllowedGroupFlag
API.IsUserAceAllowedGroupFlag( userId, groupName, groupFlagName )
API.IsCharacterAceAllowedGroupFlag
API.IsCharacterAceAllowedGroupFlag( charId, groupName, groupFlagName )
Last updated