public class BukkitPartiesPartyPostRenameEvent extends BukkitPartiesEvent implements IPartyPostRenameEvent
| Constructor and Description |
|---|
BukkitPartiesPartyPostRenameEvent(Party party,
String oldName,
String newName,
PartyPlayer player,
boolean isAdmin) |
| 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 renamed party
|
@Nullable PartyPlayer |
getPartyPlayer()
Get the player who performed the command
|
boolean |
isAdmin()
Is it an admin renaming?
|
getApi, getHandlerList, getHandlers, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BukkitPartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin)
@NotNull public @NotNull Party getParty()
IPartyPostRenameEventgetParty in interface IPartyPostRenameEventParty@Nullable public @Nullable String getOldPartyName()
IPartyPostRenameEventgetOldPartyName in interface IPartyPostRenameEvent@Nullable public @Nullable String getNewPartyName()
IPartyPostRenameEventgetNewPartyName in interface IPartyPostRenameEvent@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPostRenameEventgetPartyPlayer in interface IPartyPostRenameEventPartyPlayer or null if not executed by a playerpublic boolean isAdmin()
IPartyPostRenameEventisAdmin in interface IPartyPostRenameEventtrue if the rename has been performed by an adminCopyright © 2023. All rights reserved.