Commands and permissions
Commands
| Command | Aliases | Runs on | Permission | Details |
|---|---|---|---|---|
/gcadmin modules [enable|disable <id>], /gcadmin reload | /graycoreadmin | Game server | graycore.commands.gcadmin | Administration |
/grayperms ... | /gperms | Game server | graycore.grayperms.admin | Permissions |
/stop [seconds] | /shutdown, /restart | Game server | graycore.commands.stop | Administration |
/debug [on|off|status] | Game server | graycore.commands.debug | Administration | |
/itemedit ... | /ie, /itemeditor | Game server | commands.itemedit | Administration |
/spawn | Game server | none | Administration | |
/hub [type] | /lobby | Game server | none; another server type needs graycore.grayservers.admin | Servers and routing |
/message <player> <message> | /msg, /m, /whisper, /w | Game server | none | Chat |
/grayserver list, /grayserver connect id|type <value> | /server, /switch | Proxy | graycore.grayservers.admin | Servers and routing |
/kit [name], /kit create <id> <name> | /kits | Game server, kits module | the kit's own; graycore.commands.kits.admin to create | Kits |
/warp [name] | /warps | Game server, warps module | the warp's own | Warps |
/setwarp <name>, /delwarp <name> | Game server, warps module | graycore.commands.warps.admin | Warps | |
/rpgsample ... | Game server, RPG sample | graycore.commands.rpgsample.admin | RPG sample |
Permissions
The admin group gets all of them when it is created on the first start (the modules' ones included).
| Permission | Gives |
|---|---|
graycore.commands.gcadmin | /gcadmin |
graycore.grayperms.admin | /grayperms |
graycore.commands.stop | /stop |
graycore.grayservers.admin | /grayserver, and /hub to any type of server |
graycore.commands.debug | /debug |
commands.itemedit | /itemedit |
graycore.chat.format | Formatting in chat messages |
graycore.commands.kits.admin | /kit create |
graycore.commands.warps.admin | /setwarp, /delwarp |
graycore.commands.rpgsample.admin | /rpgsample |
In the code, the core's nodes are the constants of GrayCorePermissions; a module lists its own in adminPermissions().