Package dev.kitteh.factions.event
Class PowerLossEvent
java.lang.Object
org.bukkit.event.Event
dev.kitteh.factions.event.FactionEvent
dev.kitteh.factions.event.FactionPlayerEvent
dev.kitteh.factions.event.PowerLossEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
@NullMarked
public class PowerLossEvent
extends FactionPlayerEvent
implements org.bukkit.event.Cancellable
Event called when a player loses power.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet the power loss message.booleanvoidsetCancelled(boolean c) voidsetMessage(@Nullable String message) Set the power loss message.Methods inherited from class dev.kitteh.factions.event.FactionPlayerEvent
getFPlayerMethods inherited from class dev.kitteh.factions.event.FactionEvent
getFaction, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PowerLossEvent
-
-
Method Details
-
getMessage
Get the power loss message.- Returns:
- power loss message as String.
-
setMessage
Set the power loss message.- Parameters:
message- message
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean c) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-