Class GroupCreateEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.group.GroupCreateEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
权限组添加事件
当权限组添加时触发
添加成功后可以通过 getGroup()
获取新添加的权限组
如果添加失败则 getGroup()
返回null
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionGroupCreateEvent
(@NotNull AbstractOperator operator, @NotNull DominionDTO dominion, @NotNull String groupName) -
Method Summary
Modifier and TypeMethodDescription@NotNull DominionDTO
@Nullable GroupDTO
getGroup()
获取新添加的权限组,如果添加失败则返回nullvoid
setDominion
(@NotNull DominionDTO dominion) void
void
setGroupNameColored
(String groupName) Methods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled, setCancelled, setCancelledAdnComplete
Methods inherited from class cn.lunadeer.dominion.events.CallableEvent
call, getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GroupCreateEvent
public GroupCreateEvent(@NotNull @NotNull AbstractOperator operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull String groupName)
-
-
Method Details
-
setDominion
-
getDominion
-
setGroupNameColored
-
getGroupNameColored
-
getGroupNamePlain
-
setGroup
-
getGroup
获取新添加的权限组,如果添加失败则返回null- Returns:
- 新添加的权限组
-