SwitchCraftCC / issues

Report general bugs for the SwitchCraft 3 server here. This tracker is NOT for exploits - please disclose those responsibly and privately to a member of staff.
1 stars 0 forks source link

chatbox `players` event does not actually include player that joined #83

Closed Kan18 closed 1 year ago

Kan18 commented 1 year ago

Describe the bug

If you join the game, the chatbox players event will not actually include your player object unless it is sent again. This may be some sort of timing issue. This makes the result of chatbox.getPlayers() and chatbox.getPlayerList() inaccurate.

To reproduce

  1. Leave the game
  2. Join again
  3. check chatbox.getPlayerList()
  4. notice that you are not in it

Expected behavior

The players event should include the player that joined when it is sent. (Please do not feel pressured to fix this issue until after SwitchMarket is complete! 😉)

Relevant log output

No response

Please confirm