Class GroupCreateEvent

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

public class GroupCreateEvent extends ResultEvent
权限组添加事件

当权限组添加时触发 添加成功后可以通过 getGroup() 获取新添加的权限组 如果添加失败则 getGroup() 返回null

  • Constructor Details

    • GroupCreateEvent

      public GroupCreateEvent(@NotNull @NotNull AbstractOperator operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull String groupName)
  • Method Details

    • setDominion

      public void setDominion(@NotNull @NotNull DominionDTO dominion)
    • getDominion

      @NotNull public @NotNull DominionDTO getDominion()
    • setGroupNameColored

      public void setGroupNameColored(String groupName)
    • getGroupNameColored

      public String getGroupNameColored()
    • getGroupNamePlain

      public String getGroupNamePlain()
    • setGroup

      public void setGroup(@NotNull @NotNull GroupDTO group)
    • getGroup

      @Nullable public @Nullable GroupDTO getGroup()
      获取新添加的权限组,如果添加失败则返回null
      Returns:
      新添加的权限组