Question Handle Redis' message on player join

renvins

New member
Aug 15, 2023
2
0
1
18
Italy
I have a plugin that when a player accepts a request from another player (maybe on another server) the proxy (with redis request) sends both players to another server. When they join they have to be given some stuff and they have to be teleported to an arena (the server is used also for other things).

I was thinking to do that by sending another redis message to advise the server that these "operations" should be done to these players.
But I don't know how to handle this multi-threading environment..

- Maybe players join after the request is already arrived so the server won't do anything
because they are not online yet?
- Maybe players are lagging and join after?

Ideas?