Class FreezeTool

java.lang.Object
fr.luc.crcore.features.moderation.tool.FreezeTool
All Implemented Interfaces:
ModeratorTool

public class FreezeTool extends Object implements ModeratorTool
Freeze — slot 2. Click droit sur un joueur → toggle freeze.
  • Field Details

  • Constructor Details

  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: ModeratorTool
      Clé unique de l'outil (ex. "exit", "vanish", "freeze").
      Specified by:
      getKey in interface ModeratorTool
    • getSlot

      public int getSlot()
      Description copied from interface: ModeratorTool
      Slot fixe sur la hotbar (0..8). Les conflits sont gérés par ModeratorToolRegistry.
      Specified by:
      getSlot in interface ModeratorTool
    • buildIcon

      public org.bukkit.inventory.ItemStack buildIcon()
      Description copied from interface: ModeratorTool
      Construit l'icône à afficher (nouvelle instance à chaque appel).
      Specified by:
      buildIcon in interface ModeratorTool
    • onInteractEntity

      public void onInteractEntity(org.bukkit.entity.Player moderator, org.bukkit.entity.Entity target)
      Description copied from interface: ModeratorTool
      Appelé sur clic droit sur une entité (typiquement un joueur).
      Specified by:
      onInteractEntity in interface ModeratorTool