Package dev.esophose.playerparticles
Class PlayerParticles
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
dev.esophose.playerparticles.PlayerParticles
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class PlayerParticles
extends org.bukkit.plugin.java.JavaPlugin
-
Constructor Summary
Constructors Constructor Description PlayerParticles()
-
Method Summary
Modifier and Type Method Description static PlayerParticles
getInstance()
Gets the instance of the plugin running on the server<T extends Manager>
TgetManager(java.lang.Class<T> managerClass)
Gets a manager instancevoid
onDisable()
void
onEnable()
Executes essential tasks for starting up the pluginvoid
onLoad()
void
reload()
Reloads the pluginMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
-
Constructor Details
-
PlayerParticles
public PlayerParticles()
-
-
Method Details
-
onEnable
public void onEnable()Executes essential tasks for starting up the plugin- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
onLoad
public void onLoad()- Specified by:
onLoad
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onLoad
in classorg.bukkit.plugin.java.JavaPlugin
-
getManager
Gets a manager instance- Type Parameters:
T
- The manager type- Parameters:
managerClass
- The class of the manager instance to get- Returns:
- The manager instance or null if one does not exist
-
reload
public void reload()Reloads the plugin -
getInstance
Gets the instance of the plugin running on the server- Returns:
- The PlayerParticles plugin instance
-