Class VanishToggleTool

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

public class VanishToggleTool extends Object implements ModeratorTool
Vanish toggle — slot 7. Click → toggle vanish on/off (le modérateur reste en mod mode, mais visible/invisible).
  • 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
    • onLeftClick

      public void onLeftClick(org.bukkit.entity.Player moderator)
      Description copied from interface: ModeratorTool
      Appelé sur clic gauche en l'air ou sur un bloc.
      Specified by:
      onLeftClick in interface ModeratorTool
    • onRightClick

      public void onRightClick(org.bukkit.entity.Player moderator)
      Description copied from interface: ModeratorTool
      Appelé sur clic droit en l'air ou sur un bloc.
      Specified by:
      onRightClick in interface ModeratorTool