Interface CorePlugin

All Superinterfaces:
Comparable<CorePlugin>, Plugin

public interface CorePlugin extends Plugin, Comparable<CorePlugin>
A plugin that TranslateCore can boot
  • Method Details

    • onConstruct

      @Deprecated default void onConstruct(@NotNull @NotNull Object pluginLauncher)
      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 in Plugin.getPlatformLauncher()
    • onConstruct

      default void onConstruct(@NotNull @NotNull Object pluginLauncher, @NotNull @NotNull Logger logger)
    • onRegisterCommands

      void onRegisterCommands(@NotNull @NotNull CommandRegister register)
      Runs when commands should be registered
      Parameters:
      register - A command register for registering the plugins commands
    • getLicence

      @NotNull @NotNull String getLicence()
      Gets the licence of this plugin
      Returns:
      The licence name of the plugin
    • getPluginVersion

      @NotNull @NotNull CorePluginVersion getPluginVersion()
      Description copied from interface: Plugin
      Gets the plugin version information
      Specified by:
      getPluginVersion in interface Plugin
      Returns:
      The plugin version information
    • onShutdown

      default void onShutdown()
    • compareTo

      default int compareTo(@NotNull @NotNull CorePlugin o)
      Specified by:
      compareTo in interface Comparable<CorePlugin>
    • getDependingOn

      @NotNull default @NotNull LoadOnlyOnPlatform[] getDependingOn()