Skip to content

AtumPlugin class detailed

Phoenix-Ra edited this page Jul 21, 2023 · 3 revisions

Useful methods

Besides handleEnable() and handleDisable() methods that are by default has to be overriden you can also override these:

  • handleLoad() - called on plugin load. (before handleEnable(). Can be used to check dependencies and so)
  • handleReload() - called on plugin reload.

The AtumPlugin also contains method reload() which cancels the plugin tasks and reloads the configs, and then calls handleReload()

  • handleAfterLoad() - called after handleEnable()
  • loadListeners() - here u can place all the listeners u created to not to manually register them

Use Lists.newArrayList() or Lists.of() for your convenience. image

  • loadPluginCommands() - the same for this, but commands Learn More

Scheduler

More convenient methods than from bukkit, especially if you are using kotlin.

getScheduler()

Logger

The same as the standard one from bukkit, but the info() method supports colored messages

getLogger()

EventManager

Added for convenience. You can use all the important methods related to the events from there

getEventManager()

ConfigManager

Powerful manager allowing u to not to care about the config files logic.

Learn more

getConfigManager()

ScoreboardManager

We will get back to that later, cause it require more info to provide.

GuiController

Useful and simple lib to create gui menus

We will get back to that later, cause it require more info to provide.

EffectsManager

Thats what I used in my YT videos:) We will get back to that later, cause it require more info to provide.

Clone this wiki locally