@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPlayerQuit(PlayerQuitEvent event) { BlockHitManager.clearHistory(event.getPlayer()); if (Orebfuscator.config.isProximityHiderEnabled()) { ProximityHider.clearPlayer(event.getPlayer()); } }
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerChangeWorld(PlayerChangedWorldEvent event) { BlockHitManager.clearHistory(event.getPlayer()); if (Orebfuscator.config.isProximityHiderEnabled()) { ProximityHider.clearBlocksForOldWorld(event.getPlayer()); ProximityHider.addPlayerToCheck(event.getPlayer(), null); } }