Class EldoPlugin
- All Implemented Interfaces:
- DebugDataProvider,- org.bukkit.command.CommandExecutor,- org.bukkit.command.TabCompleter,- org.bukkit.command.TabExecutor,- org.bukkit.plugin.Plugin
JavaPlugin.
 Provides basic function to wrap some stuff and make it easier to access
- Since:
- 1.1.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet a list of classes which should be registered viaConfigurationSerialization.registerClass(Class).Get debug information for the current object instance.static EldoPluginabstract Levelfinal org.bukkit.plugin.PluginManagerGet the servers plugin manager.final org.bukkit.scheduler.BukkitSchedulerGet the servers scheduler.static Loggerlogger()final booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) final voidfinal voidonEnable()final voidonLoad()voidCalled when this plugin is disabled.voidCalled when this plugin is enabled.voidonPluginEnable(boolean reload) Called when this plugin is enabled.voidExecuted on load of the plugin.voidExecuted on when the plugin gets reloaded via server reload.voidCalled when the server has started completely.voidonPostStart(boolean reload) Called when the server has started completely.final voidregisterCommand(AdvancedCommand command) Register a advanced command.final voidregisterCommand(String command, AdvancedCommand executor) Register a tabexecutor for a command.final voidregisterCommand(String command, org.bukkit.command.TabExecutor tabExecutor) Register a tabexecutor for a command.final voidregisterListener(org.bukkit.event.Listener... listener) Registers listener for the pluginfinal intscheduleRepeatingTask(Runnable task, int period) Schedules a repeating task.final intscheduleRepeatingTask(Runnable task, int delay, int period) Schedules a repeating task.protected final voidMethods inherited from class org.bukkit.plugin.java.JavaPlugingetClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBaseequals, getName, hashCodeMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.eldoria.eldoutilities.debug.DebugDataProvidergetDebugProviders
- 
Constructor Details- 
EldoPluginpublic EldoPlugin()
- 
EldoPlugin
 
- 
- 
Method Details- 
getInstance
- 
logger
- 
getLogger- Specified by:
- getLoggerin interface- org.bukkit.plugin.Plugin
- Overrides:
- getLoggerin class- org.bukkit.plugin.java.JavaPlugin
 
- 
setLoggerLevelprotected final void setLoggerLevel()
- 
getLogLevel
- 
registerCommandRegister a tabexecutor for a command.This tabexecutor will handle execution and tab completion. - Parameters:
- command- name of command
- tabExecutor- command executor
 
- 
registerCommandRegister a advanced command.This will register a command exector for the toplevel command. - Parameters:
- command- command
 
- 
registerCommandRegister a tabexecutor for a command.This tabexecutor will handle execution and tab completion. - Parameters:
- command- name of command
- executor- command executor
 
- 
registerListenerpublic final void registerListener(org.bukkit.event.Listener... listener) Registers listener for the plugin- Parameters:
- listener- listener to register
 
- 
scheduleRepeatingTaskSchedules a repeating task.This task will be executed by the main server thread. - Parameters:
- task- Task to be executed
- period- Period in server ticks of the task
- Returns:
- Task id number (-1 if scheduling failed)
 
- 
scheduleRepeatingTaskSchedules a repeating task.This task will be executed by the main server thread. - Parameters:
- task- Task to be executed
- delay- Delay in server ticks before executing first repeat
- period- Period in server ticks of the task
- Returns:
- Task id number (-1 if scheduling failed)
 
- 
getPluginManagerpublic final org.bukkit.plugin.PluginManager getPluginManager()Get the servers plugin manager.- Returns:
- plugin manager
 
- 
getSchedulerpublic final org.bukkit.scheduler.BukkitScheduler getScheduler()Get the servers scheduler.- Returns:
- scheduler instance
 
- 
getConfigSerializationpublic List<Class<? extends org.bukkit.configuration.serialization.ConfigurationSerializable>> getConfigSerialization()Get a list of classes which should be registered viaConfigurationSerialization.registerClass(Class).These classes will be registered on load plugin initialization. - Returns:
- list of serializable classes.
 
- 
onLoadpublic final void onLoad()- Specified by:
- onLoadin interface- org.bukkit.plugin.Plugin
- Overrides:
- onLoadin class- org.bukkit.plugin.java.JavaPlugin
 
- 
onPluginLoadExecuted on load of the plugin. Replacement forPlugin.onLoad().Any thrown exception will be catched and make the plugin initializing the failsave mode. - Throws:
- Throwable- any throwable
 
- 
onEnablepublic final void onEnable()- Specified by:
- onEnablein interface- org.bukkit.plugin.Plugin
- Overrides:
- onEnablein class- org.bukkit.plugin.java.JavaPlugin
 
- 
onPluginReloadExecuted on when the plugin gets reloaded via server reload. This method will be executed before execution ofonPluginEnable().Any thrown exception will be catched and make the plugin initializing the failsave mode. - Throws:
- Throwable- any throwable
 
- 
onPostStartCalled when the server has started completely.Any thrown exception will be catched and make the plugin initializing the failsave mode. - Parameters:
- reload- indicated that the call was caused by a server reload
- Throws:
- Throwable- any throwable
 
- 
onPostStartCalled when the server has started completely.Any thrown exception will be catched and make the plugin initializing the failsave mode. - Throws:
- Throwable- any throwable
 
- 
onPluginEnableCalled when this plugin is enabled. Replacement forPlugin.onEnable()Any thrown exception will be catched and make the plugin initializing the failsave mode. - Parameters:
- reload- indicated that the call was caused by a server reload
- Throws:
- Throwable- any throwable
 
- 
onPluginEnableCalled when this plugin is enabled. Replacement forPlugin.onEnable()Any thrown exception will be catched and make the plugin initializing the failsave mode. - Throws:
- Throwable- any throwable
 
- 
onDisablepublic final void onDisable()- Specified by:
- onDisablein interface- org.bukkit.plugin.Plugin
- Overrides:
- onDisablein class- org.bukkit.plugin.java.JavaPlugin
 
- 
onPluginDisableCalled when this plugin is disabled.- Throws:
- Throwable- any exception
 
- 
getDebugInformationsDescription copied from interface:DebugDataProviderGet debug information for the current object instance.- Specified by:
- getDebugInformationsin interface- DebugDataProvider
- Returns:
- array of entry data.
 
- 
onCommandpublic final boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
- onCommandin interface- org.bukkit.command.CommandExecutor
- Overrides:
- onCommandin class- org.bukkit.plugin.java.JavaPlugin
 
 
-