Some more fixes to the commands.
This commit is contained in:
parent
db8af97ab2
commit
1f676eda60
3 changed files with 18 additions and 4 deletions
|
|
@ -423,6 +423,15 @@ class PlayerDB(TypedObject):
|
|||
# a non-character session; this goes to player directly
|
||||
_GA(self, "execute_cmd")(ingoing_string, sessid=sessid)
|
||||
|
||||
def disconnect_session_from_player(self, sessid):
|
||||
"""
|
||||
Access method for disconnecting a given session from the player.
|
||||
"""
|
||||
global _SESSIONS
|
||||
if not _SESSIONS:
|
||||
from src.server.sessionhandler import SESSIONS as _SESSIONS
|
||||
_SESSIONS.disconnect(sessid=sessid)
|
||||
|
||||
def connect_session_to_character(self, sessid, character, force=False):
|
||||
"""
|
||||
Connect the given session to a character through this player.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue