类 DominionSetGuestFlagEvent

所有已实现的接口:
org.bukkit.event.Cancellable

@Experimental public class DominionSetGuestFlagEvent extends DominionModifyEvent
Event triggered when a guest flag is set for a Dominion in the Dominion system.
  • 构造器详细资料

    • DominionSetGuestFlagEvent

      public DominionSetGuestFlagEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull PriFlag flag, boolean newValue)
      Constructs a new DominionSetGuestFlagEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion for which the flag is being set
      flag - the guest flag being set
      newValue - the new value of the flag
  • 方法详细资料

    • getFlag

      public PriFlag getFlag()
      Gets the guest flag being set.
      返回:
      the guest flag
    • getOldValue

      public boolean getOldValue()
      Gets the old value of the guest flag.
      返回:
      the old value of the guest flag
    • getNewValue

      public boolean getNewValue()
      Gets the new value of the guest flag.
      返回:
      the new value of the guest flag
    • setNewValue

      public void setNewValue(boolean newValue)
      Sets the new value of the guest flag.
      参数:
      newValue - the new value to set