
CLI
You can use CLI to add new administrators, manage the permission groups and much more. This feature was introduced in version 2.0.
Admin Management
lc admins
Usage: lc admins
Use this command to see all admins registered in the admin menu.
> lc admins
------------------------------------------------------------------------------------------
On Duty | Nick | Group | Group Tier | Global Identifier
------------------------------------------------------------------------------------------
YES (ID: 7) | dev7 | owner | 1 | license:c08777064740a5e3fd9aa6284978371442d73f68
------------------------------------------------------------------------------------------lc admin
Usage: lc admin <target_id/identifier>
This command shows all the information about specified admin.
> lc admin 7
--------------------------------
Admin Info
Nick: user
Global Identifier: license:c08777064740a5e3fd9aa6284978371442d73f68
Online: YES (ID: 7)
Admin ID: 785
Group: dev7
Group Tier: 1
Permissions Source: database
Permissions: [
"all"
]
--------------------------------
Use command "lc set_group 7 <group_name>" to set the group of an admin.lc give_access
Usage: lc give_access <target_id> <group_name>
This command gives access to the admin menu to player with specific ID. Make sure that the group name is a correct Permission Group name.
> lc give_access 7 owner2
Group not found
Use command "lc groups" to see groups.
Usage: "lc give_access <target_id> <group_name>"
> lc give_access 7 owner
Admin menu access granted to 7 with group ownerlc set_group
Usage: lc set_group <target_id> <group_name>
Use this command to change already existing admin's group.
> lc set_group 7 adminn
Group not found
Use command "lc groups" to see groups.
> lc set_group 7 admin
Group set successfullyPermissions
lc permissions
Usage: lc permissions
Lists all available permissions.
lc groups
Usage: lc groups
Lists all available Permission Groups.
> lc groups
--------------------------------------------------
Group Name | Tier | Discord Role ID | Non Editable
--------------------------------------------------
owner | 1 | Not Set | True
admin | 2 | Not Set | True
trial | 10 | Not Set | True
--------------------------------------------------lc group
Usage: lc group <group_name>
Displays group info.
lc create_group
Usage: lc create_group <group_name> <tier>
Creates Permission Group with given name and tier.
> lc create_group custom_group 2
--------------------------------
Group created successfully
--------------------------------
Group: custom_group
Tier: 2
Discord Role ID: Not Set
Permissions: []
--------------------------------
Use command "lc add_group_permission custom_group <permission_name>" to add a permission to this group.
Use command "lc remove_group_permission custom_group <permission_name>" to remove a permission from this group.
Use command "lc permissions" to see all available permissions.lc delete_group
Usage: lc delete_group <group_name>
Deletes Permission Group with given name.
> lc delete_group custom_group
Group deleted successfullylc add_group_permission
Usage: lc add_group_permission <group_name> <permission_name>
Adds permission to a Permission Group with given name.
> lc add_group_permission custom revive
--------------------------------
Permission added successfully
--------------------------------
Group: custom
Tier: 5
Discord Role ID: Not Set
Permissions: [
"revive"
]
--------------------------------lc remove_group_permission
Usage: lc remove_group_permission <group_name> <permission_name>
Removes permission from a Permission Group with given name.
> lc remove_group_permission custom revive
--------------------------------
Permission removed successfully
--------------------------------
Group: custom
Tier: 5
Discord Role ID: Not Set
Permissions: []
--------------------------------Last updated