/bw leave during game not working well
Describe the bug
A clear and concise description of what the bug is. Screenshots and or videos are allowed.
How to reproduce
- Set mode to SHARED
- only include bedwars plugin, have no other plugins inside. (actually, it doesn't matter whether there are other plugins, but this proves it's about bedwars)
- include main worlds and arenas to be loaded
- once server starts, set the lobby location (/bw setlobby) to somewhere that is not the main world's spawn point
- enter an arena
- /bw start to start the game
- do /bw leave anytime so long the game is running
- you get teleported to the main world's spawn point (seems like you get teleported to the lobbyloc that instantly right after you get teleported to the main world spawn point. i know because I have a greeting(a worldguard thing) in the world where the lobbyloc is supposed to be)
Expected behavior
/bw leave should teleport the target player to either where he executed /bw join or where he joined with /bw gui, or lobbyloc
Server info
- Plugin version: 21.6 snapshot
- Server version: Paper 768 mc version 1.16.5
- Server log: https://pastebin.com/LyJD9TfM find [23:44:13] to see
Edited by Keevan Kwok