Class GroupDeleteEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.group.GroupDeleteEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event triggered when a group is deleted within a dominion.
This event is triggered when a group is removed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionGroupDeleteEvent
(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull GroupDTO group) Constructs a new GroupDeleteEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull DominionDTO
Gets the dominion to which the group belongs.@NotNull GroupDTO
getGroup()
Gets the group being deleted.void
setDominion
(@NotNull DominionDTO dominion) Sets the dominion to which the group belongs.void
Sets the group being deleted.Methods inherited from class cn.lunadeer.dominion.events.ResultEvent
getOperator, isCancelled, setCancelled
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
-
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 eventdominion
- the dominion to which the group belongsgroup
- the group being deleted
-
-
Method Details
-
setDominion
Sets the dominion to which the group belongs.- Parameters:
dominion
- the dominion to set
-
getDominion
Gets the dominion to which the group belongs.- Returns:
- the dominion
-
setGroup
Sets the group being deleted.- Parameters:
group
- the group to set
-
getGroup
Gets the group being deleted.- Returns:
- the group
-