Add the home command.
This commit is contained in:
parent
867fb47be7
commit
899136760e
2 changed files with 14 additions and 1 deletions
|
|
@ -138,6 +138,19 @@ def cmd_newpassword(command):
|
|||
GLOBAL_CMD_TABLE.add_command("@newpassword", cmd_newpassword,
|
||||
priv_tuple=("genperms.manage_players"))
|
||||
|
||||
def cmd_home(command):
|
||||
"""
|
||||
Teleport the player to their home.
|
||||
"""
|
||||
pobject = command.source_object
|
||||
if pobject.home == None:
|
||||
pobject.emit_to("You have no home set, @link yourself to somewhere.")
|
||||
else:
|
||||
pobject.emit_to("There's no place like home...")
|
||||
pobject.move_to(pobject.get_home())
|
||||
GLOBAL_CMD_TABLE.add_command("home", cmd_home,
|
||||
priv_tuple=("genperms.tel_anywhere"))
|
||||
|
||||
def cmd_shutdown(command):
|
||||
"""
|
||||
Shut the server down gracefully.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue