mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Disabled the use of 'create' and 'connect' ingame
This commit is contained in:
parent
d80d93b250
commit
623f6bea5a
1 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,11 @@ def cmd_connect(command):
|
|||
|
||||
session = command.session
|
||||
|
||||
# Check whether command is being issued in-game
|
||||
if str(session.get_pobject()) != 'None':
|
||||
session.msg("Connect command unavailable in-game")
|
||||
return
|
||||
|
||||
# Argument check.
|
||||
# Fail gracefully if no argument is provided
|
||||
if not command.command_argument:
|
||||
|
|
@ -51,6 +56,11 @@ def cmd_create(command):
|
|||
"""
|
||||
session = command.session
|
||||
|
||||
#If this command is issued in game,
|
||||
if str(session.get_pobject()) != 'None':
|
||||
session.msg("Create command unavailable in-game")
|
||||
return
|
||||
|
||||
# Argument check.
|
||||
# Fail gracefully if no argument is provided
|
||||
if not command.command_argument:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue