Class BungeePartiesPartyPreCreateEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
com.alessiodp.parties.api.events.bungee.party.BungeePartiesPartyPreCreateEvent
- All Implemented Interfaces:
Cancellable,IPartyPreCreateEvent,PartiesEvent
public class BungeePartiesPartyPreCreateEvent
extends BungeePartiesEvent
implements IPartyPreCreateEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBungeePartiesPartyPreCreateEvent(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.bungee.BungeePartiesEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods 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
-
BungeePartiesPartyPreCreateEvent
-
-
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- 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- Parameters:
cancel-trueto cancel
-