Kicking on join results in handleDisconnection() called twice (+ bugged tablist)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      Spigot: git-Spigot-9b8bba4-bdcc7c7

       

      Ubuntu 16.04 64 Bit and CentOS 7 64 Bit.

       

      Tested on a Spigot server with everything default and no other plugins except the one to kick the user.

      If a player is kicked on join, handleDisconnection() called twice shows in console and the player is shown on the tablist and as "online" on the server when they are not.

       

      Brifley tested on Spigot 1.11.2 and 1.12 (+PaperSpigot 1.12.2),

       

      This can be used to replicate the issue:

       

      public class PlayerJoin implements Listener { @EventHandler public void onJoin(PlayerJoinEvent event) { if (event.getPlayer().getName().equalsIgnoreCase("ssamjh")) event.getPlayer().kickPlayer("Get off my lawn."); } }
      

       

            Assignee:
            Unassigned
            Reporter:
            Sam Howell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: