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
|
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.
|
# Argument check.
|
||||||
# Fail gracefully if no argument is provided
|
# Fail gracefully if no argument is provided
|
||||||
if not command.command_argument:
|
if not command.command_argument:
|
||||||
|
|
@ -51,6 +56,11 @@ def cmd_create(command):
|
||||||
"""
|
"""
|
||||||
session = command.session
|
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.
|
# Argument check.
|
||||||
# Fail gracefully if no argument is provided
|
# Fail gracefully if no argument is provided
|
||||||
if not command.command_argument:
|
if not command.command_argument:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue