Client Scripts: Network object - po-devs/pokemon-online GitHub Wiki
The network object can be obtained in client scripts with client.network()
. It's basically what's between the client and the server, and does all the communication with the server.
Here are some of its functions:
sendChanMessage(channel, message)
Sends amessage
to all players inchannel
. This function calls the server's chatMessage events, so you could also execute server commandsCPUnban(player_name)
Unbansplayer_name
sendPM(player, message)
Sends a PM toplayer
. PMs content ismessage