@Samarium
I was thinking about implementing a global chat plugin and it works perfectly for me.
But I have concerns that it won't work in case of using kubernetes/agones
because I use this code to send message for all players:
sendToAll(data: InstantChatMessage) {
RpgWorld.getPlayers().forEach(player => {
player.emit('chat-message', this.instantMessage(data, {
type: data.type || ChatMessageType.Default,
}))
})
}
but I think that RpgWorlds.getPlayers
will work only in the case of a single server instance, won't it?