Interface IPlugin
- All Known Implementing Classes:
UltiToolsPlugin
public interface IPlugin
Plugin interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanUltiTools will call this method when instantiating the main body of the plugin, similar toJavaPlugin.onEnable()voidUltiTools will call this method when reloading this plugin module, similar toJavaPlugin.onDisable()andJavaPlugin.onEnable().voidUltiTools will call this method when unregistering this plugin module, similar toJavaPlugin.onDisable()
-
Method Details
-
registerSelf
UltiTools will call this method when instantiating the main body of the plugin, similar toJavaPlugin.onEnable()- Returns:
- Whether the registration is successful
- Throws:
IOException- IOException
-
unregisterSelf
void unregisterSelf()UltiTools will call this method when unregistering this plugin module, similar toJavaPlugin.onDisable() -
reloadSelf
void reloadSelf()UltiTools will call this method when reloading this plugin module, similar toJavaPlugin.onDisable()andJavaPlugin.onEnable(). This reload is not a module restart: it does not callregisterSelf()orunregisterSelf().
-