BedWars1058
BedWars1058 copied to clipboard
Players are getting sent to lobby multiple times
see Misc#moveToLobbyOrKick method: it's in CmdLeave and also in arena leave listener so a player would get sent to a lobby multiple times
i added a debug to forceKick method to demonstrate this:
@SuppressWarnings("UnstableApiUsage")
private static void forceKick(Player p, @Nullable IArena arena, boolean notAbandon) {
Bukkit.broadcastMessage("Force kick called");
here are the logs:
[12:28:44] [Server thread/INFO]: Force kick called
[12:28:44] [Server thread/INFO]: faf1af79 lost connection: Disconnected
[12:28:44] [Server thread/INFO]: Force kick called