Package de.marcely.bedwars.api.event
Class PluginPostHookEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.PluginPostHookEvent
Gets called after this plugin tried to create a hook with another plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListReturns the plugin to which we tried to hook ourself into.booleanReturns whether we were successful with creating a hook to another plugin.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PluginPostHookEvent
-
-
Method Details
-
getPlugin
Returns the plugin to which we tried to hook ourself into.- Returns:
- The plugin we tried to hook into
-
wasSuccessful
public boolean wasSuccessful()Returns whether we were successful with creating a hook to another plugin.It fails in case there was an error while performing the hook registration.
- Returns:
truewhen we are now successfully hooked with the given plugin
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-