Package org.core.platform.plugin
Interface CorePlugin
- All Superinterfaces:
Comparable<CorePlugin>
,Plugin
A plugin that TranslateCore can boot
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
compareTo(@NotNull CorePlugin o)
default @NotNull LoadOnlyOnPlatform[]
@NotNull String
Gets the licence of this plugin@NotNull CorePluginVersion
Gets the plugin version informationdefault void
onConstruct(@NotNull Object pluginLauncher)
Deprecated.default void
onConstruct(@NotNull Object pluginLauncher, @NotNull Logger logger)
void
onRegisterCommands(@NotNull CommandRegister register)
Runs when commands should be registereddefault void
Methods inherited from interface org.core.platform.plugin.Plugin
createConfig, getConfigFolder, getPlatformLauncher, getPluginId, getPluginName, getResource, onCoreFinishedInit, onCoreInit, onCoreReady
-
Method Details
-
onConstruct
Deprecated.Runs when the core plugin is constructed.- Parameters:
pluginLauncher
- The plugin launcher is its native launcher, this should be the same as what is returned inPlugin.getPlatformLauncher()
-
onConstruct
-
onRegisterCommands
Runs when commands should be registered- Parameters:
register
- A command register for registering the plugins commands
-
getLicence
Gets the licence of this plugin- Returns:
- The licence name of the plugin
-
getPluginVersion
Description copied from interface:Plugin
Gets the plugin version information- Specified by:
getPluginVersion
in interfacePlugin
- Returns:
- The plugin version information
-
onShutdown
default void onShutdown() -
compareTo
- Specified by:
compareTo
in interfaceComparable<CorePlugin>
-
getDependingOn
-