CannonRTPLocationValidationEvent

public class CannonRTPLocationValidationEvent extends Event

Fired for each candidate landing location as CannonRTP validates it during the preload search, and fired again for the consumed destination when a launch revalidates it at commit time (just before the teleport). Listeners may veto a location by calling setRejected — during preload CannonRTP discards the candidate as if it had failed an internal check and continues searching; at commit time the launch is cancelled and the player recovered. Useful for custom region checks beyond the built-in protection integrations.

Non-cancellable in the Bukkit sense — use setRejected to signal rejection. Both dispatches occur on the main thread.

Constructors

Link copied to clipboard
public void CannonRTPLocationValidationEvent(String cannonId, String cannonDisplayName, Location candidate)

Properties

Link copied to clipboard
public final Location candidate
Link copied to clipboard
public final String cannonDisplayName
Link copied to clipboard
public final String cannonId
Link copied to clipboard
public String rejectionReason

Functions

Link copied to clipboard
public Location getCandidate()
Link copied to clipboard
public String getCannonDisplayName()
Link copied to clipboard
public String getCannonId()
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
public HandlerList getHandlers()
Link copied to clipboard
public String getRejectionReason()
Link copied to clipboard
public boolean isRejected()
Link copied to clipboard
public void setRejected(String reason)

Inherited functions

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