mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
Added @boot.
Currently, @boot will boot the first username match it comes across, if connected. It will not boot non-player objects, and it will not allow staff to boot other staff.
This commit is contained in:
parent
3fe64c1f34
commit
684ae521b7
3 changed files with 67 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ class Object(models.Model):
|
|||
functions_general.log_errmsg("Missing default home, %s '%s(#%d)' now has a null location." % (text, obj.name, obj.id))
|
||||
|
||||
if obj.is_player():
|
||||
if obj.is_connected():
|
||||
if obj.is_connected_plr():
|
||||
if home:
|
||||
obj.emit_to("Your current location has ceased to exist, moving you to your home %s(#%d)." % (home.name, home.id))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue