The group system structure has been completed with hierarchy. 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
Copy API.AddUserToGroupByName( userId, groupName )
API.RemoveUserFromGroupByName
Remove user from group by group name
Copy API.RemoveUserFromGroupByName( userId, groupName )
API.AddCharacterToGroupByName
Add character to group by group name
Copy API.AddCharacterToGroupByName( charId, groupName )
API.RemoveCharacterFromGroupByName
Remove character from group by group name
Copy API.RemoveCharacterFromGroupByName( charId, groupName )
API.IsPlayerAceAllowedGroup
Returns true
or false
to check permission.
Copy API.IsPlayerAceAllowedGroup( source, groupName)
API.IsUserAceAllowedGroup
Copy API.IsUserAceAllowedGroup( userId, groupName )
API.IsCharacterAceAllowedGroup
Copy 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.
Copy API.IsPlayerAceAllowedGroupFlag( source, groupName, groupFlagName )
API.IsUserAceAllowedGroupFlag
Copy API.IsUserAceAllowedGroupFlag( userId, groupName, groupFlagName )
API.IsCharacterAceAllowedGroupFlag
Copy API.IsCharacterAceAllowedGroupFlag( charId, groupName, groupFlagName )