Class MemberSetFlagEvent
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.member.MemberSetFlagEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event triggered when a member's flag is set in the Dominion system.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionMemberSetFlagEvent
(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull MemberDTO member, @NotNull PriFlag flag, boolean newValue) Constructs a new MemberSetFlagEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetFlag()
Gets the flag being set.Gets the member whose flag is being set.boolean
Gets the new value of the flag.boolean
Gets the old value of the flag.void
setNewValue
(boolean newValue) Sets the new value of the flag.Methods inherited from class cn.lunadeer.dominion.events.dominion.modify.DominionModifyEvent
getDominion, setDominion
Methods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled
Methods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
MemberSetFlagEvent
public MemberSetFlagEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull MemberDTO member, @NotNull @NotNull PriFlag flag, boolean newValue) Constructs a new MemberSetFlagEvent.- Parameters:
operator
- the command sender who initiated the eventdominion
- the dominion to which the member belongsmember
- the member whose flag is being setflag
- the flag being setnewValue
- the new value of the flag
-
-
Method Details
-
getFlag
Gets the flag being set.- Returns:
- the flag being set
-
getOldValue
public boolean getOldValue()Gets the old value of the flag.- Returns:
- the old value of the flag
-
getNewValue
public boolean getNewValue()Gets the new value of the flag.- Returns:
- the new value of the flag
-
setNewValue
public void setNewValue(boolean newValue) Sets the new value of the flag.- Parameters:
newValue
- the new value to set
-
getMember
Gets the member whose flag is being set.- Returns:
- the member whose flag is being set
-