CannonRTPLaunchEvent

public class CannonRTPLaunchEvent extends Event implements Cancellable

Fired the moment a player is about to begin a cannon launch sequence, before any effects are applied. Cancelling this event aborts the launch entirely — the player stays where they are and the destination is returned to the cannon's queue so it can be reused on the next launch.

Constructors

Link copied to clipboard
public void CannonRTPLaunchEvent(Player player, String cannonId, String cannonDisplayName, Location cannonLocation, Location destination)

Properties

Link copied to clipboard
public final String cannonDisplayName
Link copied to clipboard
public final String cannonId
Link copied to clipboard
public final Location cannonLocation
Link copied to clipboard
public final Location destination
Link copied to clipboard
public final Player player

Functions

Link copied to clipboard
public String getCannonDisplayName()
Link copied to clipboard
public String getCannonId()
Link copied to clipboard
public Location getCannonLocation()
Link copied to clipboard
public Location getDestination()
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
public HandlerList getHandlers()
Link copied to clipboard
public Player getPlayer()
Link copied to clipboard
public boolean isCancelled()
Link copied to clipboard
public void setCancelled(boolean cancel)

Inherited functions

Link copied to clipboard
public String getEventName()
Link copied to clipboard
public final boolean isAsynchronous()