core.command.auth module

Registers the sp auth sub-commands.

core.command.auth._sp_auth_list(command_info)[source]

List all available backends and marks the active backend.

core.command.auth._sp_auth_load(command_info, backend)[source]

Set the active backend.

core.command.auth._sp_auth_permission_parent_add(command_info, parent, permission, server_id: int = None)[source]

Add a permission to a parent.

core.command.auth._sp_auth_permission_parent_add_parent(command_info, parent, parent_to_add)[source]

Add a parent to a parent.

core.command.auth._sp_auth_permission_parent_list(command_info, name=None)[source]

List all parents and permissions of a given parent or all parents.

core.command.auth._sp_auth_permission_parent_remove(command_info, parent, permission, server_id: int = None)[source]

Remove a permission from a parent.

core.command.auth._sp_auth_permission_parent_remove_parent(command_info, parent, parent_to_remove)[source]

Remove a parent from a parent.

core.command.auth._sp_auth_permission_player_add(command_info, players: <function filter_str at 0xeccd5fa4>, permission, server_id: int = None)[source]

Grant a permission to players.

core.command.auth._sp_auth_permission_player_add_parent(command_info, players: <function filter_str at 0xeccd5fa4>, parent)[source]

Add a parent to players.

core.command.auth._sp_auth_permission_player_remove(command_info, players: <function filter_str at 0xeccd5fa4>, permission, server_id: int = None)[source]

Remove a permission from players.

core.command.auth._sp_auth_permission_player_remove_parent(command_info, players: <function filter_str at 0xeccd5fa4>, parent)[source]

Remove a parent from players.

core.command.auth._sp_auth_permission_player_test(command_info, permission)[source]

Test which players are granted a permission.