public class Plan extends com.djrapitops.plugin.BukkitPlugin<Plan> implements IPlan
Everything can be accessed through this class. Use Plan.getInstance() to get the initialised instance of Plan.
Constructor and Description |
---|
Plan() |
Modifier and Type | Method and Description |
---|---|
void |
addToProcessQueue(Processor... processors) |
int |
getBootAnalysisTaskID()
Used to get the ID of the BootAnalysisTask, so that it can be disabled.
|
Set<Database> |
getDatabases()
Used to get all possible database objects.
|
DataCache |
getDataCache()
Used to access Cache.
|
Database |
getDB()
Used to access active Database.
|
HookHandler |
getHookHandler()
Used to access HookHandler.
|
InformationManager |
getInfoManager() |
static Plan |
getInstance()
Used to get the plugin-instance singleton.
|
static API |
getPlanAPI()
Used to get the PlanAPI.
|
ProcessingQueue |
getProcessingQueue() |
BukkitServerInfoManager |
getServerInfoManager()
Used to get the object storing server info
|
UUID |
getServerUuid() |
static UUID |
getServerUUID() |
TPSCountTimer |
getTpsCountTimer() |
ServerVariableHolder |
getVariable()
Used to get the object storing server variables that are constant after
boot.
|
WebServer |
getWebServer()
Used to access WebServer.
|
void |
onDisable()
Disables the plugin.
|
void |
onEnable()
OnEnable method.
|
void |
restart() |
benchmark, copyDefaultConfig, disablePlugin, fetch, getAPFVersion, getColorScheme, getIConfig, getInstance, getNotificationCenter, getPluginInstance, getPluginLogger, getPrefix, getRunnableFactory, getUpdateCheckUrl, getUpdateUrl, getVersion, onEnableDefaultTasks, registerCommand, registerListener, registerPluginMessageSubChannel, setColorScheme, setDebugMode, setInstance, setInstance, setLog, setLogPrefix, setUpdateCheckUrl, setUpdateUrl, taskStatus
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDataFolder, getIConfig, getResource
benchmark, copyDefaultConfig, disablePlugin, fetch, getAPFVersion, getColorScheme, getNotificationCenter, getPluginLogger, getPrefix, getRunnableFactory, getUpdateCheckUrl, getUpdateUrl, getVersion, onEnableDefaultTasks, registerCommand, setColorScheme, setDebugMode, setLog, setLogPrefix, taskStatus
public static API getPlanAPI() throws NoClassDefFoundError
IllegalStateException
- If onEnable method has not been called on
Plan and the instance is null.NoClassDefFoundError
- If Plan is not installed.public static Plan getInstance()
public static UUID getServerUUID()
public UUID getServerUuid()
getServerUuid
in interface IPlan
public void onEnable()
- Enables the plugin's subsystems.
onEnable
in interface com.djrapitops.plugin.IPlugin
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class com.djrapitops.plugin.BukkitPlugin<Plan>
public void onDisable()
onDisable
in interface com.djrapitops.plugin.IPlugin
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class com.djrapitops.plugin.BukkitPlugin<Plan>
public DataCache getDataCache()
public Database getDB()
public WebServer getWebServer()
getWebServer
in interface IPlan
public HookHandler getHookHandler()
public Set<Database> getDatabases()
#init() might need to be called in order for the object to function.
public int getBootAnalysisTaskID()
public ServerVariableHolder getVariable()
getVariable
in interface IPlan
ServerVariableHolder
public BukkitServerInfoManager getServerInfoManager()
BukkitServerInfoManager
public ProcessingQueue getProcessingQueue()
getProcessingQueue
in interface IPlan
public TPSCountTimer getTpsCountTimer()
public void addToProcessQueue(Processor... processors)
addToProcessQueue
in interface IPlan
public InformationManager getInfoManager()
getInfoManager
in interface IPlan
Copyright © 2017. All rights reserved.