Interface IPartyPreCreateEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPreCreateEvent,BungeePartiesPartyPreCreateEvent,VelocityPartiesPartyPreCreateEvent
public interface IPartyPreCreateEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringgetPartyName()Get the name of the party@Nullable PartyPlayergetPartyPlayer()Get the player that is creating the partybooleanisFixed()Is the party fixed?voidsetFixed(boolean fixed)Set if the party is fixedvoidsetPartyName(@Nullable String name)Set a new name to the party-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getPartyPlayer
@Nullable @Nullable PartyPlayer getPartyPlayer()
Get the player that is creating the party- Returns:
- the
PartyPlayer
-
getPartyName
@Nullable @Nullable String getPartyName()
Get the name of the party- Returns:
- the party name
-
setPartyName
void setPartyName(@Nullable @Nullable String name)Set a new name to the party- Parameters:
name- the name to set
-
isFixed
boolean isFixed()
Is the party fixed?- Returns:
trueif it's fixed
-
setFixed
void setFixed(boolean fixed)
Set if the party is fixed- Parameters:
fixed-trueto be fixed
-
-