类 GroupDeleteEvent

java.lang.Object
org.bukkit.event.Event
所有已实现的接口:
org.bukkit.event.Cancellable

public class GroupDeleteEvent extends ResultEvent
Event triggered when a group of a dominion is deleted.
  • 构造器详细资料

    • GroupDeleteEvent

      public GroupDeleteEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group)
      Constructs a new GroupDeleteEvent.
      参数:
      operator - the command sender who initiated the event
      dominion - the dominion to which the group belongs
      group - the group being deleted
  • 方法详细资料

    • setDominion

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

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

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

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