public interface IPartyPreRenameEvent extends PartiesEvent, Cancellable
| Modifier and Type | Method and Description |
|---|---|
@Nullable String |
getNewPartyName()
Get the new party name
|
@Nullable String |
getOldPartyName()
Get the old party name
|
@NotNull Party |
getParty()
Get the party that is getting renamed
|
@Nullable PartyPlayer |
getPartyPlayer()
Get the player who performed the command
|
boolean |
isAdmin()
Is it an admin renaming?
|
void |
setNewPartyName(String name)
Set the new name of the party
|
getApi, setApiisCancelled, setCancelled@NotNull @NotNull Party getParty()
Party@Nullable @Nullable String getOldPartyName()
@Nullable @Nullable String getNewPartyName()
void setNewPartyName(String name)
name - the party name to set@Nullable @Nullable PartyPlayer getPartyPlayer()
PartyPlayer or null if not executed by a playerboolean isAdmin()
true if the rename has been performed by an adminCopyright © 2023. All rights reserved.