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>
    T
    getManager​(java.lang.Class<T> managerClass)
    Gets a manager instance
    void onDisable()  
    void onEnable()
    Executes essential tasks for starting up the plugin
    void onLoad()  
    void reload()
    Reloads the plugin

    Methods 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

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • onEnable

      public void onEnable()
      Executes essential tasks for starting up the plugin
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • onLoad

      public void onLoad()
      Specified by:
      onLoad in interface org.bukkit.plugin.Plugin
      Overrides:
      onLoad in class org.bukkit.plugin.java.JavaPlugin
    • getManager

      public <T extends Manager> T getManager​(java.lang.Class<T> managerClass)
      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

      public static PlayerParticles getInstance()
      Gets the instance of the plugin running on the server
      Returns:
      The PlayerParticles plugin instance