Class CommandEvent

All Implemented Interfaces:
Cancellable

public class CommandEvent extends CancellableEvent
Command Event Class
  • Constructor Details

    • CommandEvent

      public CommandEvent(Galaxi engine, CommandSender sender, String raw, String label, String... args)
      Console Command Event
      Parameters:
      engine - GalaxiEngine
      sender - Command Sender
      raw - Raw Command
      label - Command Label
      args - Command Arguments
  • Method Details

    • getSender

      public CommandSender getSender()
      Gets who sent this Command
      Returns:
      Command Sender
    • getRawCommand

      public String getRawCommand()
      Get the Raw Command String
      Returns:
      Raw Command String
    • getLabel

      public String getLabel()
      Get the Command Label
      Returns:
      Command Label
    • setLabel

      public void setLabel(String value)
      Set the Command Label
      Parameters:
      value - Command Label
    • getArguments

      public String[] getArguments()
      Get the Command Arguments
      Returns:
      Command Arguments
    • setArguments

      public void setArguments(String... value)
      Set the Command Arguments
      Parameters:
      value - Command Arguments