Skip to content

Commit

Permalink
Fixed players chat-listeners not removed when leaving the server (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Aug 25, 2022
1 parent 038e820 commit eef1fe8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -196,6 +196,9 @@ private void onPlayerQuit(PlayerQuitEvent e) {
onPlayerLeaveIsland(superiorPlayer, playerLocation, islandAtLocation, null, null,
IslandLeaveEvent.LeaveCause.PLAYER_QUIT);
}

// Remove all player chat-listeners
PlayerChat.remove(e.getPlayer());
}

@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
Expand Down

0 comments on commit eef1fe8

Please sign in to comment.