Пример #1
0
    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
      final YBEffect effect = effects.remove(event.getPlayer());
      if (effect == null) return;

      effect.stop();
    }
Пример #2
0
    @EventHandler
    public void onEntityDeath(EntityDeathEvent event) {
      final YBEffect effect = effects.remove(event.getEntity());
      if (effect == null) return;

      effect.stop();
    }