Class SRCore

java.lang.Object
me.unurled.srcore.SRCore

public final class SRCore extends Object
The SRCore class is a class that is used to manage the core of the plugin.
  • Method Details

    • getInstance

      @NotNull public static @NotNull SRCore getInstance()
      Get an instance of the SRCore
      Returns:
      The instance of the SRCore
    • getPlugin

      @NotNull public @NotNull org.bukkit.plugin.Plugin getPlugin()
      Get the plugin which called the api
      Returns:
      The plugin
    • setPlugin

      public void setPlugin(@Nullable @Nullable org.bukkit.plugin.Plugin plugin)
      Set the plugin which called the api
      Parameters:
      plugin - The plugin
    • getManagers

      public Managers getManagers()
      Get the managers for every manager
      Returns:
      The managers instance
    • unload

      public void unload()
      Unload the managers, to be called when the plugin is disabled