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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitPartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin)
@NotNull public @NotNull Party getParty()
IPartyPostRenameEvent
getParty
in interface IPartyPostRenameEvent
Party
@Nullable public @Nullable String getOldPartyName()
IPartyPostRenameEvent
getOldPartyName
in interface IPartyPostRenameEvent
@Nullable public @Nullable String getNewPartyName()
IPartyPostRenameEvent
getNewPartyName
in interface IPartyPostRenameEvent
@Nullable public @Nullable PartyPlayer getPartyPlayer()
IPartyPostRenameEvent
getPartyPlayer
in interface IPartyPostRenameEvent
PartyPlayer
or null if not executed by a playerpublic boolean isAdmin()
IPartyPostRenameEvent
isAdmin
in interface IPartyPostRenameEvent
true
if the rename has been performed by an adminCopyright © 2023. All rights reserved.