Class GroupAddMemberEvent
java.lang.Object
org.bukkit.event.Event
cn.lunadeer.dominion.events.CallableEvent
cn.lunadeer.dominion.events.ResultEvent
cn.lunadeer.dominion.events.group.GroupAddMemberEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Event triggered when a member is added to a group within a dominion.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionGroupAddMemberEvent
(@NotNull org.bukkit.command.CommandSender operator, @NotNull DominionDTO dominion, @NotNull GroupDTO group, @NotNull MemberDTO member) Constructs a new GroupAddMemberEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull DominionDTO
Gets the dominion to which the group belongs.@NotNull GroupDTO
getGroup()
Gets the group to which the member is being added.@NotNull MemberDTO
Gets the member being added to the group.void
Sets the member being added to the group.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
-
GroupAddMemberEvent
public GroupAddMemberEvent(@NotNull @NotNull org.bukkit.command.CommandSender operator, @NotNull @NotNull DominionDTO dominion, @NotNull @NotNull GroupDTO group, @NotNull @NotNull MemberDTO member) Constructs a new GroupAddMemberEvent.- Parameters:
operator
- the command sender who initiated the eventdominion
- the dominion to which the group belongsgroup
- the group to which the member is being addedmember
- the member being added to the group
-
-
Method Details
-
getGroup
Gets the group to which the member is being added.- Returns:
- the group
-
getMember
Gets the member being added to the group.- Returns:
- the member
-
setMember
Sets the member being added to the group.- Parameters:
member
- the member to set
-
getDominion
Gets the dominion to which the group belongs.- Returns:
- the dominion
-