Interface IPartyPreRenameEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPreRenameEvent,BungeePartiesPartyPreRenameEvent,VelocityPartiesPartyPreRenameEvent
public interface IPartyPreRenameEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringgetNewPartyName()Get the new party name@Nullable StringgetOldPartyName()Get the old party name@NotNull PartygetParty()Get the party that is getting renamed@Nullable PartyPlayergetPartyPlayer()Get the player who performed the commandbooleanisAdmin()Is it an admin renaming?voidsetNewPartyName(String name)Set the new name of the party-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getParty
@NotNull @NotNull Party getParty()
Get the party that is getting renamed- Returns:
- the
Party
-
getOldPartyName
@Nullable @Nullable String getOldPartyName()
Get the old party name- Returns:
- the old name of the party
-
getNewPartyName
@Nullable @Nullable String getNewPartyName()
Get the new party name- Returns:
- the new name of the party
-
setNewPartyName
void setNewPartyName(String name)
Set the new name of the party- Parameters:
name- the party name to set
-
getPartyPlayer
@Nullable @Nullable PartyPlayer getPartyPlayer()
Get the player who performed the command- Returns:
- the
PartyPlayeror null if not executed by a player
-
isAdmin
boolean isAdmin()
Is it an admin renaming?- Returns:
trueif the rename has been performed by an admin
-
-