Class ModuleInstallationEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ModuleInstallationEvent extends ModuleEvent implements 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.

  • Constructor Details

    • ModuleInstallationEvent

      public ModuleInstallationEvent(@NotNull @NotNull Module module, @NotNull @NotNull org.bukkit.entity.Player player)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()