All Implemented Interfaces:
PlayerCommand, PlayerCommandCompleter

public class MeCommand extends PlayerCommandBase
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: PlayerCommand
      Gets the name of the command. This is used as the subcommand identifier (e.g., /command <name>).
      Returns:
      the subcommand name
    • getPermission

      public String getPermission()
      Description copied from interface: PlayerCommand
      Gets the required permission to execute the command.
      Returns:
      the permission node as a string
    • execute

      public void execute(org.bukkit.entity.Player player, String[] args)
      Description copied from interface: PlayerCommand
      Executes the command logic when the command is invoked by a player.
      Parameters:
      player - the player executing the command
      args - the arguments passed to the command