public class Plan
extends org.bukkit.plugin.java.JavaPlugin
Constructor and Description |
---|
Plan() |
Modifier and Type | Method and Description |
---|---|
AnalysisCacheHandler |
getAnalysisCache()
Used to access AnalysisCache.
|
API |
getAPI()
Deprecated.
Use Plan.getAPI() (static method) instead.
|
int |
getBootAnalysisTaskID()
Used to get the ID of the BootAnalysisTask, so that it can be disabled.
|
HashSet<Database> |
getDatabases()
Used to get all possible database objects.
|
Database |
getDB()
Used to access active Database.
|
DataCacheHandler |
getHandler()
Used to access Cache.
|
HookHandler |
getHookHandler()
Used to access HookHandler.
|
InspectCacheHandler |
getInspectCache()
Used to access InspectCache.
|
static Plan |
getInstance()
Used to get the current instance of Plan.
|
static API |
getPlanAPI()
Used to get the PlanAPI.
|
WebSocketServer |
getUiServer()
Used to access Webserver.
|
boolean |
initDatabase()
Initializes the database according to settings in the config.
|
void |
onDisable()
Disables the plugin.
|
void |
onEnable()
OnEnable method.
|
static void |
setInstance(Plan plan)
Used to set the current instance of Plan.
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, installDDL, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
public void onEnable()
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public boolean initDatabase()
public AnalysisCacheHandler getAnalysisCache()
public InspectCacheHandler getInspectCache()
public DataCacheHandler getHandler()
public Database getDB()
public WebSocketServer getUiServer()
public HookHandler getHookHandler()
public HashSet<Database> getDatabases()
public int getBootAnalysisTaskID()
@Deprecated public API getAPI()
public static Plan getInstance()
IllegalStateException
- If onEnable method has not been called and
the instance is null.public static void setInstance(Plan plan)
plan
- The newly enabled Plan instance.public static API getPlanAPI() throws IllegalStateException
IllegalStateException
- If onEnable method has not been called on
Plan and the instance is null.Copyright © 2017. All rights reserved.