类 DominionSetEnvFlagEvent

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

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

    • DominionSetEnvFlagEvent

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

    • getFlag

      public EnvFlag getFlag()
      Gets the environmental flag being set.
      返回:
      the environmental flag
    • getOldValue

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

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

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