Class DominionSetGuestFlagEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
cn.lunadeer.dominion.events.dominion.modify.DominionSetGuestFlagEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event triggered when a guest flag is set for a Dominion in the Dominion system.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionDominionSetGuestFlagEvent(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull PriFlag flag, boolean newValue) Constructs a new DominionSetGuestFlagEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetFlag()Gets the guest flag being set.booleanGets the new value of the guest flag.booleanGets the old value of the guest flag.voidsetNewValue(boolean newValue) Sets the new value of the guest flag.Methods inherited from class cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
afterModified, getDominion, getFutureToComplete, setDominionMethods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelledMethods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
DominionSetGuestFlagEvent
public DominionSetGuestFlagEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull PriFlag flag, boolean newValue) Constructs a new DominionSetGuestFlagEvent.- Parameters:
operator- the command sender who initiated the eventdominion- the dominion for which the flag is being setflag- the guest flag being setnewValue- the new value of the flag
-
-
Method Details
-
getFlag
Gets the guest flag being set.- Returns:
- the guest flag
-
getOldValue
public boolean getOldValue()Gets the old value of the guest flag.- Returns:
- the old value of the guest flag
-
getNewValue
public boolean getNewValue()Gets the new value of the guest flag.- Returns:
- the new value of the guest flag
-
setNewValue
public void setNewValue(boolean newValue) Sets the new value of the guest flag.- Parameters:
newValue- the new value to set
-