Class SRCore
java.lang.Object
me.unurled.srcore.SRCore
The SRCore class is a class that is used to manage the core of the plugin.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SRCore
Get an instance of the SRCoreGet the managers for every manager@NotNull org.bukkit.plugin.Plugin
Get the plugin which called the apivoid
setPlugin
(@Nullable org.bukkit.plugin.Plugin plugin) Set the plugin which called the apivoid
unload()
Unload the managers, to be called when the plugin is disabled
-
Method Details
-
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
-
unload
public void unload()Unload the managers, to be called when the plugin is disabled
-