Added a @reload command to reload most of the modules. This currently only seems to work for the stuff outside of the apps directory, and doesn't include the server, session_mgr, or events modules, as they have variables in them that we can't have reset. So basically, changes to the functions_ and commands_ modules can be applied with @reload, but little else. Hopefully this will improve with time. Also fixed a bug with @name'ing players but not updating their account's username to reflect it.
This commit is contained in:
parent
81b1797144
commit
4fd5a20e2c
6 changed files with 50 additions and 11 deletions
|
|
@ -17,6 +17,13 @@ builder, staff or otherwise manipulative command that doesn't fall within
|
|||
the scope of normal gameplay.
|
||||
"""
|
||||
|
||||
def cmd_reload(cdat):
|
||||
"""
|
||||
Reloads all modules.
|
||||
"""
|
||||
session = cdat['session']
|
||||
server = session.server.reload(session)
|
||||
|
||||
def cmd_destroy(cdat):
|
||||
"""
|
||||
Destroy an object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue