Class ModuleInstallationEvent
java.lang.Object
org.bukkit.event.Event
ua.mcchickenstudio.opencreative.events.CreativeEvent
ua.mcchickenstudio.opencreative.events.module.ModuleEvent
ua.mcchickenstudio.opencreative.events.module.ModuleInstallationEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Called when module is installed in developers world by player.
If a Module Installation event is cancelled, it will not install a module.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionModuleInstallationEvent(@NotNull Module module, @NotNull org.bukkit.entity.Player player) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.entity.PlayerbooleanvoidsetCancelled(boolean cancel) Methods inherited from class ModuleEvent
getModuleMethods inherited from class CreativeEvent
getHandlerList, getHandlersModifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ModuleInstallationEvent
public ModuleInstallationEvent(@NotNull @NotNull Module module, @NotNull @NotNull org.bukkit.entity.Player player)
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()
-