Make sure PlayerEvents#logout is called

This commit is contained in:
Alexander Söderberg 2020-04-08 17:53:11 +02:00
parent 865d11e844
commit 38de74c4ff

View File

@ -2353,6 +2353,7 @@ public class PlayerEvents extends PlotListener implements Listener {
TaskManager.TELEPORT_QUEUE.remove(event.getPlayer().getName());
PlotPlayer pp = BukkitUtil.getPlayer(event.getPlayer());
pp.unregister();
PlotListener.logout(pp.getUUID());
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)