Package me.hsgamer.bettergui
Class BetterGUI
- java.lang.Object
-
- org.bukkit.plugin.PluginBase
-
- org.bukkit.plugin.java.JavaPlugin
-
- me.hsgamer.hscore.bukkit.simpleplugin.SimplePlugin
-
- me.hsgamer.hscore.bukkit.baseplugin.BasePlugin
-
- me.hsgamer.bettergui.BetterGUI
-
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
@Plugin(name="BetterGUI", version="8.6") @Description("Yet Another GUI plugin") @Author("HSGamer") @Website("https://github.com/BetterGUI-MC") @ApiVersion(v1_13) @SoftDependency("PlaceholderAPI") public final class BetterGUI extends BasePluginThe main class of the plugin
-
-
Constructor Summary
Constructors Constructor Description BetterGUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()voidenable()AddonDownloadergetAddonDownloader()Get the addon downloaderExtraAddonManagergetAddonManager()Get the addon managerstatic BetterGUIgetInstance()Get the instance of the pluginMainConfiggetMainConfig()Get the main configMenuCommandManagergetMenuCommandManager()Get the menu command managerMenuManagergetMenuManager()Get the menu managerMessageConfiggetMessageConfig()Get the message configprotected List<Class<?>>getPermissionClasses()TemplateConfiggetTemplateButtonConfig()Get the template button configvoidload()voidpostDisable()voidpostEnable()voidpreLoad()static voidrunBatchRunnable(Consumer<BatchRunnable> batchRunnableConsumer)Run the batch runnablestatic voidrunBatchRunnable(BatchRunnable runnable)Run the batch runnable-
Methods inherited from class me.hsgamer.hscore.bukkit.baseplugin.BasePlugin
getCommandManager, getRegisteredCommand, onDisable, onEnable, onLoad, registerCommand, registerPermission
-
Methods inherited from class me.hsgamer.hscore.bukkit.simpleplugin.SimplePlugin
addDisableFunction, getAllProviders, getProvider, loadProvider, registerListener, registerProvider, registerProvider
-
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, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
-
-
-
-
Method Detail
-
getInstance
public static BetterGUI getInstance()
Get the instance of the plugin- Returns:
- the instance
-
runBatchRunnable
public static void runBatchRunnable(BatchRunnable runnable)
Run the batch runnable- Parameters:
runnable- the runnable
-
runBatchRunnable
public static void runBatchRunnable(Consumer<BatchRunnable> batchRunnableConsumer)
Run the batch runnable- Parameters:
batchRunnableConsumer- the batch runnable consumer
-
preLoad
public void preLoad()
- Overrides:
preLoadin classSimplePlugin
-
load
public void load()
- Overrides:
loadin classSimplePlugin
-
enable
public void enable()
- Overrides:
enablein classSimplePlugin
-
postEnable
public void postEnable()
- Overrides:
postEnablein classSimplePlugin
-
disable
public void disable()
- Overrides:
disablein classSimplePlugin
-
postDisable
public void postDisable()
- Overrides:
postDisablein classSimplePlugin
-
getPermissionClasses
protected List<Class<?>> getPermissionClasses()
- Overrides:
getPermissionClassesin classBasePlugin
-
getMainConfig
public MainConfig getMainConfig()
Get the main config- Returns:
- the main config
-
getMessageConfig
public MessageConfig getMessageConfig()
Get the message config- Returns:
- the message config
-
getTemplateButtonConfig
public TemplateConfig getTemplateButtonConfig()
Get the template button config- Returns:
- the template button config
-
getMenuManager
public MenuManager getMenuManager()
Get the menu manager- Returns:
- the menu manager
-
getMenuCommandManager
public MenuCommandManager getMenuCommandManager()
Get the menu command manager- Returns:
- the menu command manager
-
getAddonManager
public ExtraAddonManager getAddonManager()
Get the addon manager- Returns:
- the addon manager
-
getAddonDownloader
public AddonDownloader getAddonDownloader()
Get the addon downloader- Returns:
- the addon downloader
-
-