コード例 #1
0
 @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
 public void onPlayerQuit(PlayerQuitEvent event) {
   BlockHitManager.clearHistory(event.getPlayer());
   if (Orebfuscator.config.isProximityHiderEnabled()) {
     ProximityHider.clearPlayer(event.getPlayer());
   }
 }
コード例 #2
0
  @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);
    }
  }