Package net.gcnt.additionsplus
Class AdditionsPlus
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
net.gcnt.additionsplus.AdditionsPlus
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class AdditionsPlus
extends org.bukkit.plugin.java.JavaPlugin
The new main class of the AdditionsPlus project.
This class replaced the old main class, located at me.gaagjescraft.network.team.advancedevents.main.Main that has been marked deprecated since 2.4.0.
This class acts as the heart of the plugin. All API methods should be accessed through
getAPI()
.- Since:
- 2.4.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static AdditionsPlus
get()
Get the main class of the plugin, used to access every possible aspect of the plugin.static AdditionsAPI
getAPI()
Get the official instance of the AdditionsAPI class.getNMS()
net.gcnt.additionsplus.mygcnt.GCNTUpdater
static Utils
getUtils()
Get the official instance of the Utils class.void
void
void
onEnable()
void
void
void
void
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, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
languages
-
-
Constructor Details
-
AdditionsPlus
public AdditionsPlus()
-
-
Method Details
-
get
Get the main class of the plugin, used to access every possible aspect of the plugin.- Returns:
- Main class of the plugin.
- Since:
- 2.4.0
-
getAPI
Get the official instance of the AdditionsAPI class. This API is used to access every possible aspect of the plugin.- Returns:
AdditionsAPI
to execute all API methods from.- Since:
- 2.4.0
-
getUtils
Get the official instance of the Utils class. This class is used to handle certain utilities from the plugin, like certain action checks, placeholders, and colors.- Returns:
Utils
class.- Since:
- 2.4.0
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
loadCommands
public void loadCommands() -
startActionsQueuer
public void startActionsQueuer() -
startIntervalScheduler
public void startIntervalScheduler() -
startIntervalScoreboards
public void startIntervalScoreboards() -
checkUpdates
public void checkUpdates() -
startIntervalTablists
public void startIntervalTablists() -
getNMS
-
getCommandCommands
-
getGeneralCommands
-
getItemCommands
-
getMenuCommands
-
getUpdater
public net.gcnt.additionsplus.mygcnt.GCNTUpdater getUpdater() -
getActionQueuer
-