Class BukkitPartiesPartyPreCreateEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.party.BukkitPartiesPartyPreCreateEvent
- All Implemented Interfaces:
Cancellable,IPartyPreCreateEvent,PartiesEvent,org.bukkit.event.Cancellable
public class BukkitPartiesPartyPreCreateEvent
extends BukkitPartiesEvent
implements IPartyPreCreateEvent, org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPartiesPartyPreCreateEvent(PartyPlayer player, String name, boolean fixed) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGet the name of the party@Nullable PartyPlayerGet the player that is creating the partybooleanIs the event cancelled?booleanisFixed()Is the party fixed?voidsetCancelled(boolean cancel) Set the event as cancelledvoidsetFixed(boolean fixed) Set if the party is fixedvoidsetPartyName(@Nullable String name) Set a new name to the partyMethods 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
-
BukkitPartiesPartyPreCreateEvent
-
-
Method Details
-
getPartyPlayer
Description copied from interface:IPartyPreCreateEventGet the player that is creating the party- Specified by:
getPartyPlayerin interfaceIPartyPreCreateEvent- Returns:
- the
PartyPlayer
-
getPartyName
Description copied from interface:IPartyPreCreateEventGet the name of the party- Specified by:
getPartyNamein interfaceIPartyPreCreateEvent- Returns:
- the party name
-
setPartyName
Description copied from interface:IPartyPreCreateEventSet a new name to the party- Specified by:
setPartyNamein interfaceIPartyPreCreateEvent- Parameters:
name- the name to set
-
isFixed
public boolean isFixed()Description copied from interface:IPartyPreCreateEventIs the party fixed?- Specified by:
isFixedin interfaceIPartyPreCreateEvent- Returns:
trueif it's fixed
-
setFixed
public void setFixed(boolean fixed) Description copied from interface:IPartyPreCreateEventSet if the party is fixed- Specified by:
setFixedin interfaceIPartyPreCreateEvent- Parameters:
fixed-trueto be fixed
-
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
-