Files
NGECore2/scripts/commands/groupchat.py
T

19 lines
366 B
Python

import sys
def setup():
return
def run(core, actor, target, commandString):
group = core.objectService.getObject(actor.getGroupId())
if group is None:
return
room = core.chatService.getChatRoom(group.getChatRoomId())
if room is None:
return
core.chatService.sendChatRoomMessage(actor, room.getRoomId(), 0, commandString)
return