Class CommandContext

java.lang.Object
com.zetaplugins.zetacore.commands.CommandContext

public class CommandContext extends Object
Context for a command execution, containing the sender, command, label, and arguments.
  • Constructor Details

  • Method Details

    • getSender

      public CommandSender getSender()
      Get the sender of the command.
      Returns:
      The CommandSender
    • getCommand

      public Command getCommand()
      Get the command that was executed.
      Returns:
      The Command
    • getLabel

      public String getLabel()
      Get the label (alias) used to execute the command.
      Returns:
      The command label
    • getArgs

      public ArgumentList getArgs()
      Get the arguments passed to the command.
      Returns:
      The ArgumentList