Command reloading ended up being really super easy. @reload now rebuilds and re-imports all of the command modules. This should make development a lot easier.
This commit is contained in:
parent
4ca5a4a7bf
commit
5c5d2249bd
3 changed files with 32 additions and 22 deletions
|
|
@ -13,9 +13,13 @@ def cmd_reload(command):
|
|||
"""
|
||||
Reloads all modules.
|
||||
"""
|
||||
command.source_object.emit_to("To be implemented...")
|
||||
command.source_object.emit_to("Reloading command modules...")
|
||||
command.session.server.reload(command.source_object)
|
||||
command.source_object.emit_to("Modules reloaded.")
|
||||
GLOBAL_CMD_TABLE.add_command("@reload", cmd_reload,
|
||||
priv_tuple=("genperms.process_control")),
|
||||
GLOBAL_CMD_TABLE.add_command("@restart", cmd_reload,
|
||||
priv_tuple=("genperms.process_control")),
|
||||
|
||||
def cmd_boot(command):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue