mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Made @script command without giving an object warning about global scripts.
This commit is contained in:
parent
e449c3391f
commit
5a811a2d89
1 changed files with 4 additions and 0 deletions
|
|
@ -2211,6 +2211,10 @@ class CmdScript(MuxCommand):
|
|||
caller.msg(string)
|
||||
return
|
||||
|
||||
if not self.lhs:
|
||||
caller.msg("To create a global script you need {w@scripts/add <typeclass>{n.")
|
||||
return
|
||||
|
||||
obj = caller.search(self.lhs)
|
||||
if not obj:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue