Class ModerationListener

java.lang.Object
fr.luc.crcore.features.moderation.impl.ModerationListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class ModerationListener extends Object implements org.bukkit.event.Listener
Routing des interactions Bukkit pour le module modération.
  • Clic gauche / droit (bloc ou air) → tool.onLeftClick / onRightClick.
  • Clic sur entité → tool.onInteractEntity.
  • Hotbar des modérateurs verrouillée (pas de drop, pas de swap, pas de déplacement d'item via inventory click sur leur propre inv).
  • Vanish appliqué automatiquement aux joueurs qui join (re-hide).
  • Cleanup automatique des state freeze/vanish sur quit.
  • Mouvement bloqué pour les joueurs gelés.

Enregistré une fois par CRCore.enable() si la feature modération est active.

  • Constructor Summary

    Constructors
    Constructor
    Description
    ModerationListener(org.bukkit.plugin.java.JavaPlugin plugin, ModerationService moderation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDrop(org.bukkit.event.player.PlayerDropItemEvent event)
     
    void
    onInteract(org.bukkit.event.player.PlayerInteractEvent event)
     
    void
    onInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event)
     
    void
    onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onJoin(org.bukkit.event.player.PlayerJoinEvent event)
     
    void
    onMove(org.bukkit.event.player.PlayerMoveEvent event)
     
    void
    onQuit(org.bukkit.event.player.PlayerQuitEvent event)
     
    void
    onSwap(org.bukkit.event.player.PlayerSwapHandItemsEvent event)
     
    void
    registerOn(org.bukkit.plugin.java.JavaPlugin plugin)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModerationListener

      public ModerationListener(org.bukkit.plugin.java.JavaPlugin plugin, ModerationService moderation)
  • Method Details

    • registerOn

      public void registerOn(org.bukkit.plugin.java.JavaPlugin plugin)
    • onInteract

      public void onInteract(org.bukkit.event.player.PlayerInteractEvent event)
    • onInteractEntity

      public void onInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event)
    • onDrop

      public void onDrop(org.bukkit.event.player.PlayerDropItemEvent event)
    • onSwap

      public void onSwap(org.bukkit.event.player.PlayerSwapHandItemsEvent event)
    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onJoin

      public void onJoin(org.bukkit.event.player.PlayerJoinEvent event)
    • onQuit

      public void onQuit(org.bukkit.event.player.PlayerQuitEvent event)
    • onMove

      public void onMove(org.bukkit.event.player.PlayerMoveEvent event)