public class BungeePartiesPartyPreCreateEvent extends BungeePartiesEvent implements IPartyPreCreateEvent
| Constructor and Description |
|---|
BungeePartiesPartyPreCreateEvent(PartyPlayer player,
String name,
boolean fixed) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
getPartyName()
Get the name of the party
|
@Nullable PartyPlayer |
getPartyPlayer()
Get the player that is creating the party
|
boolean |
isCancelled()
Is the event cancelled?
|
boolean |
isFixed()
Is the party fixed?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
void |
setFixed(boolean fixed)
Set if the party is fixed
|
void |
setPartyName(@Nullable String name)
Set a new name to the party
|
getApi, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BungeePartiesPartyPreCreateEvent(PartyPlayer player, String name, boolean fixed)
@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPreCreateEventgetPartyPlayer in interface IPartyPreCreateEventPartyPlayer@Nullable public @Nullable String getPartyName()
IPartyPreCreateEventgetPartyName in interface IPartyPreCreateEventpublic void setPartyName(@Nullable
@Nullable String name)
IPartyPreCreateEventsetPartyName in interface IPartyPreCreateEventname - the name to setpublic boolean isFixed()
IPartyPreCreateEventisFixed in interface IPartyPreCreateEventtrue if it's fixedpublic void setFixed(boolean fixed)
IPartyPreCreateEventsetFixed in interface IPartyPreCreateEventfixed - true to be fixedpublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2023. All rights reserved.