Class GravesCommand

java.lang.Object
com.ranull.graves.command.GravesCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public final class GravesCommand extends Object implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Handles command execution and tab completion for the Graves plugin.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor to initialize the GravesCommand with the Graves plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String string, String[] args)
     
    onTabComplete(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String string, @NotNull String[] args)
     
    void
    sendHelpMenu(org.bukkit.command.CommandSender sender)
    Sends the help menu to the command sender.

    Methods inherited from class java.lang.Object

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

    • GravesCommand

      public GravesCommand(Graves plugin)
      Constructor to initialize the GravesCommand with the Graves plugin.
      Parameters:
      plugin - The Graves plugin instance.
  • Method Details

    • onCommand

      public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String string, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • sendHelpMenu

      public void sendHelpMenu(org.bukkit.command.CommandSender sender)
      Sends the help menu to the command sender.
      Parameters:
      sender - The command sender.
    • onTabComplete

      public List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String string, @NotNull @NotNull String[] args)
      Specified by:
      onTabComplete in interface org.bukkit.command.TabCompleter