Package preponderous.ponder.system.abs
Class PonderApplication
java.lang.Object
preponderous.ponder.system.abs.PonderApplication
- Since:
- January 5th, 2022
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
abstract boolean
onCommand(CommandSender sender, String label, String[] args)
This method should be called when a command sender sends a command to the application.abstract void
This method should be called when the application shuts down.abstract void
This method should be called when the application starts.void
setDescription(String description)
void
-
Constructor Details
-
PonderApplication
- 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
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
- Returns:
- The name of the application.
-
setName
- Parameters:
name
- The new name of the application.
-
getDescription
- Returns:
- The description of the application.
-
setDescription
- Parameters:
description
- The new description of the application.
-