554 B
554 B
event onPlayerMessage
This event is triggered when a player types the message on the chat.
Original: onPlayerMessage
Parameters
dictkwargs:intplayerid: the id of the player who typed the message.strmessage: the message typed by the player.
Usage
import g2o
@g2o.event('onPlayerMessage')
def onMessage(**kwargs):
print(kwargs['playerid'], 'says', kwargs['message'])