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
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Returns the plugin to which we tried to hook ourself into.boolean
Returns 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:
true
when we are now successfully hooked with the given plugin
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-