Interface IPartyPostRenameEvent
-
- All Superinterfaces:
PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPostRenameEvent,BungeePartiesPartyPostRenameEvent,VelocityPartiesPartyPostRenameEvent
public interface IPartyPostRenameEvent extends PartiesEvent
-
-
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 renamed party@Nullable PartyPlayergetPartyPlayer()Get the player who performed the commandbooleanisAdmin()Is it an admin renaming?-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
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
-
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
-
-