Fixed issue where you could ID non-players

This commit is contained in:
Treeku
2014-06-17 18:27:01 +01:00
parent 5f6762a9f3
commit e5f78de757
+4 -1
View File
@@ -18,7 +18,10 @@ def run(core, actor, target, commandString):
target = core.chatService.getObjectByFirstName(commandString)
if target is None:
return
if target is None or target.getClient() is None or target.getClient().getSession() is None:
return
if target.getGroupId() == actor.getGroupId():
tDesign = ImageDesignStartMessage(target.getObjectId(), actor.getObjectId(), target.getObjectId())