Class PnGameCommand

java.lang.Object
gg.xp.reevent.events.BaseEvent
gg.xp.postnamazu.PnGameCommand
All Implemented Interfaces:
Event, HasPrimaryValue, Serializable

public class PnGameCommand extends BaseEvent implements HasPrimaryValue
See Also:
  • Constructor Details

    • PnGameCommand

      public PnGameCommand(String command)
      Parameters:
      command - The command to run.
    • PnGameCommand

      public PnGameCommand(String command, boolean isAmCommand)
      Parameters:
      command - The command to run
      isAmCommand - true to use the AM queue instead of the command queue; should be true for AM-related commands such as clears.
  • Method Details

    • getCommand

      public String getCommand()
    • getPrimaryValue

      public String getPrimaryValue()
      Specified by:
      getPrimaryValue in interface HasPrimaryValue
      Returns:
      A text description of this object. Should be user-friendly and not over-the-top technical (fine-grained details belong in other fields, or in the Object.toString() method).
    • getUsesAmQueue

      public boolean getUsesAmQueue()