Class GroupDeleteEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class GroupDeleteEvent extends ResultEvent
Event triggered when a group is deleted within a dominion.

This event is triggered when a group is removed.

  • Constructor Details

    • GroupDeleteEvent

      public GroupDeleteEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group)
      Constructs a new GroupDeleteEvent.
      Parameters:
      operator - the command sender who initiated the event
      dominion - the dominion to which the group belongs
      group - the group being deleted
  • Method Details

    • setDominion

      public void setDominion(@NotNull @NotNull DominionDTO dominion)
      Sets the dominion to which the group belongs.
      Parameters:
      dominion - the dominion to set
    • getDominion

      @NotNull public @NotNull DominionDTO getDominion()
      Gets the dominion to which the group belongs.
      Returns:
      the dominion
    • setGroup

      public void setGroup(@NotNull @NotNull GroupDTO group)
      Sets the group being deleted.
      Parameters:
      group - the group to set
    • getGroup

      @NotNull public @NotNull GroupDTO getGroup()
      Gets the group being deleted.
      Returns:
      the group