Class BukkitPartiesPartyPreBroadcastEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.party.BukkitPartiesPartyPreBroadcastEvent
- All Implemented Interfaces:
Cancellable,IPartyPreBroadcastEvent,PartiesEvent,org.bukkit.event.Cancellable
public class BukkitPartiesPartyPreBroadcastEvent
extends BukkitPartiesEvent
implements IPartyPreBroadcastEvent, org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPartiesPartyPreBroadcastEvent(Party party, String message, PartyPlayer player) -
Method Summary
Modifier and TypeMethodDescription@NotNull StringGet the message@NotNull PartygetParty()Get the party@Nullable PartyPlayerGet the player who sent the messagebooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledvoidsetMessage(@NotNull String message) Set the message of the playerMethods inherited from class com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
getApi, getHandlerList, getHandlers, setApiMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
BukkitPartiesPartyPreBroadcastEvent
-
-
Method Details
-
getParty
Description copied from interface:IPartyPreBroadcastEventGet the party- Specified by:
getPartyin interfaceIPartyPreBroadcastEvent- Returns:
- the
Party
-
getMessage
Description copied from interface:IPartyPreBroadcastEventGet the message- Specified by:
getMessagein interfaceIPartyPreBroadcastEvent- Returns:
- the message
-
setMessage
Description copied from interface:IPartyPreBroadcastEventSet the message of the player- Specified by:
setMessagein interfaceIPartyPreBroadcastEvent- Parameters:
message- the message to set
-
getPartyPlayer
Description copied from interface:IPartyPreBroadcastEventGet the player who sent the message- Specified by:
getPartyPlayerin interfaceIPartyPreBroadcastEvent- Returns:
- the
PartyPlayer
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel-trueto cancel
-