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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BungeePartiesPartyPreCreateEvent(PartyPlayer player, String name, boolean fixed)
@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPreCreateEvent
getPartyPlayer
in interface IPartyPreCreateEvent
PartyPlayer
@Nullable public @Nullable String getPartyName()
IPartyPreCreateEvent
getPartyName
in interface IPartyPreCreateEvent
public void setPartyName(@Nullable @Nullable String name)
IPartyPreCreateEvent
setPartyName
in interface IPartyPreCreateEvent
name
- the name to setpublic boolean isFixed()
IPartyPreCreateEvent
isFixed
in interface IPartyPreCreateEvent
true
if it's fixedpublic void setFixed(boolean fixed)
IPartyPreCreateEvent
setFixed
in interface IPartyPreCreateEvent
fixed
- true
to be fixedpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.