Package me.fami6xx.rpuniverse
Class RPUniverse
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.fami6xx.rpuniverse.RPUniverse
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public final class RPUniverse
extends org.bukkit.plugin.java.JavaPlugin
Main class of the plugin
Contains API access and plugin setup.
To get the instance of this class, use RPUniverse.getInstance()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormat a messageGet the ActionBarHandlerGet the BasicNeedsHandlerGet the BossBarHandlerorg.bukkit.configuration.file.FileConfigurationGet the FileConfigurationGet the DataSystemnet.milkbowl.vault.economy.EconomyGet the EconomyGet the HoloAPIstatic RPUniverseGet the RPUniverse instancestatic org.bukkit.plugin.java.JavaPluginGet the JavaPlugin instanceGet the JobsHandlerstatic LanguageHandlerGet the LanguageHandlerGet the LockHandlerGet the MenuManagerstatic PlayerDatagetPlayerData(String UUID)Get the PlayerData from the DataSystemstatic StringGet the prefix from the configGets the PropertyManager instanceGet the UniversalChatHandlervoidvoidonEnable()Methods inherited from class org.bukkit.plugin.java.JavaPlugin
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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getSLF4JLogger
-
Constructor Details
-
RPUniverse
public RPUniverse()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
getLockHandler
Get the LockHandler- Returns:
- The LockHandler
-
getEconomy
public net.milkbowl.vault.economy.Economy getEconomy()Get the Economy- Returns:
- The Economy
-
getUniversalChatHandler
Get the UniversalChatHandler- Returns:
- The UniversalChatHandler
-
getMenuManager
Get the MenuManager- Returns:
- The MenuManager
-
getLanguageHandler
Get the LanguageHandler- Returns:
- The LanguageHandler
-
getConfiguration
public org.bukkit.configuration.file.FileConfiguration getConfiguration()Get the FileConfiguration- Returns:
- The FileConfiguration
-
format
Format a message- Parameters:
message- The message to format- Returns:
- The formatted message
-
getPrefix
Get the prefix from the config- Returns:
- The prefix
-
getDataSystem
Get the DataSystem- Returns:
- The DataSystem
-
getHoloAPI
Get the HoloAPI- Returns:
- The HoloAPI
-
getJobsHandler
Get the JobsHandler- Returns:
- The JobsHandler
-
getInstance
Get the RPUniverse instance- Returns:
- The RPUniverse instance
-
getJavaPlugin
public static org.bukkit.plugin.java.JavaPlugin getJavaPlugin()Get the JavaPlugin instance- Returns:
- The JavaPlugin instance
-
getPlayerData
Get the PlayerData from the DataSystem- Parameters:
UUID- The UUID of the player- Returns:
- The PlayerData
-
getBossBarHandler
Get the BossBarHandler- Returns:
- The BossBarHandler
-
getActionBarHandler
Get the ActionBarHandler- Returns:
- The ActionBarHandler
-
getBasicNeedsHandler
Get the BasicNeedsHandler- Returns:
- The BasicNeedsHandler
-
getPropertyManager
Gets the PropertyManager instance- Returns:
- The PropertyManager instance
-