Class GroupSetFlagEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public class GroupSetFlagEvent extends DominionModifyEvent
Event triggered when a flag is set for a group within a dominion.
  • Constructor Details

    • GroupSetFlagEvent

      public GroupSetFlagEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group, @NotNull @NotNull PriFlag flag, boolean newValue)
      Constructs a new GroupSetFlagEvent.
      Parameters:
      operator - the command sender who initiated the event
      dominion - the dominion to which the group belongs
      group - the group for which the flag is being set
      flag - the flag being set
      newValue - the new value of the flag
  • Method Details

    • getFlag

      public PriFlag getFlag()
      Gets the flag being set.
      Returns:
      the flag
    • 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
    • getGroup

      public GroupDTO getGroup()
      Gets the group for which the flag is being set.
      Returns:
      the group