Class TeleportRandomPlayerTool

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

public class TeleportRandomPlayerTool extends Object implements ModeratorTool
Teleport random player — slot 0. Click droit → tp à un joueur aléatoire en ligne (skeleton ; à remplacer par un GUI sélecteur de joueurs plus tard).
  • Field Details

  • Constructor Details

    • TeleportRandomPlayerTool

      public TeleportRandomPlayerTool()
  • 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
    • 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