//SendMessage sends the message to every player on the server
func (server *Server) SendMessage(msg *message.Message) {
	server.QueuePacket(protocol.ServerMessage{msg.JSONString()})
}
Esempio n. 2
0
//Sends a message to the player
func (p *Player) SendMessage(msg *message.Message) {
	p.QueuePacket(protocol.ServerMessage{msg.JSONString()})
}