BedWars1058 icon indicating copy to clipboard operation
BedWars1058 copied to clipboard

Players are getting sent to lobby multiple times

Open Memexurer opened this issue 2 years ago • 0 comments

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

Memexurer avatar Jun 26 '22 10:06 Memexurer