Package dev.majek.pc.api
Class PartyCreateEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- dev.majek.pc.api.PartyCreateEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PartyCreateEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Handles the event fired when a party is created.
-
-
Constructor Summary
Constructors Constructor Description PartyCreateEvent(org.bukkit.entity.Player creator, Party party)
Fires when an in-game player creates a new party.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bukkit.entity.Player
getCreator()
Get the player who is creating the party.static org.bukkit.event.HandlerList
getHandlerList()
@NotNull org.bukkit.event.HandlerList
getHandlers()
Party
getParty()
Get the party that is being created.boolean
isCancelled()
void
setCancelled(boolean cancel)
-
-
-
Constructor Detail
-
PartyCreateEvent
public PartyCreateEvent(org.bukkit.entity.Player creator, Party party)
Fires when an in-game player creates a new party.- Parameters:
creator
- The player attempting to create the party.party
- The party being created.
-
-
Method Detail
-
getCreator
public org.bukkit.entity.Player getCreator()
Get the player who is creating the party.- Returns:
- Party creator.
-
getParty
public Party getParty()
Get the party that is being created.- Returns:
- Party being created.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-
-