Package com.lahuca.botsentry.api.event
Interface Cancellable
- All Known Subinterfaces:
SlowBotDisconnectEvent
- All Known Implementing Classes:
BungeeSlowBotDisconnectEvent
,SpigotSlowBotDisconnectEvent
,SpongeSlowBotDisconnectEvent
,VelocitySlowBotDisconnectEvent
public interface Cancellable
Cancellable class for general use. Does not depend on any other platforms.
When multiple plugins depend on this event, they will be run regardless of the cancelled state.
To solve this problem, please check if the event is already cancelled beforehand.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the cancelled state of the event.void
setCancelled
(boolean cancelled) Sets the cancelled state of the event.
-
Method Details
-
setCancelled
void setCancelled(boolean cancelled) Sets the cancelled state of the event. The last listener that changes this state will be the one that will affect the event.- Parameters:
cancelled
- the state to set
-
isCancelled
boolean isCancelled()Retrieves the cancelled state of the event. Does not have the be the final state.- Returns:
- the state
-