Class PonderApplication

java.lang.Object
preponderous.ponder.system.abs.PonderApplication

public abstract class PonderApplication extends Object
Since:
January 5th, 2022
  • Constructor Details

    • PonderApplication

      public PonderApplication(String name, String description)
      Parameters:
      name - The name of the application.
      description - The description of the application.
  • Method Details

    • onStartup

      public abstract void onStartup()
      This method should be called when the application starts.
    • onShutdown

      public abstract void onShutdown()
      This method should be called when the application shuts down.
    • onCommand

      public abstract boolean onCommand(CommandSender sender, String label, String[] args)
      This method should be called when a command sender sends a command to the application.
      Parameters:
      sender - The command sender.
      label - The label of the command.
      args - The arguments of the command.
      Returns:
      Whether the execution of the command was successful.
    • getName

      public String getName()
      Returns:
      The name of the application.
    • setName

      public void setName(String name)
      Parameters:
      name - The new name of the application.
    • getDescription

      public String getDescription()
      Returns:
      The description of the application.
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - The new description of the application.