Class BungeePartiesPartyPostRenameEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
-
- com.alessiodp.parties.api.events.bungee.party.BungeePartiesPartyPostRenameEvent
-
- All Implemented Interfaces:
IPartyPostRenameEvent,PartiesEvent
public class BungeePartiesPartyPostRenameEvent extends BungeePartiesEvent implements IPartyPostRenameEvent
-
-
Constructor Summary
Constructors Constructor Description BungeePartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin)
-
Method Summary
All Methods Instance Methods Concrete 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 class com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
getApi, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BungeePartiesPartyPostRenameEvent
public BungeePartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin)
-
-
Method Detail
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPartyPostRenameEventGet the renamed party- Specified by:
getPartyin interfaceIPartyPostRenameEvent- Returns:
- the
Party
-
getOldPartyName
@Nullable public @Nullable String getOldPartyName()
Description copied from interface:IPartyPostRenameEventGet the old party name- Specified by:
getOldPartyNamein interfaceIPartyPostRenameEvent- Returns:
- the old name of the party
-
getNewPartyName
@Nullable public @Nullable String getNewPartyName()
Description copied from interface:IPartyPostRenameEventGet the new party name- Specified by:
getNewPartyNamein interfaceIPartyPostRenameEvent- Returns:
- the new name of the party
-
getPartyPlayer
@Nullable public @Nullable PartyPlayer getPartyPlayer()
Description copied from interface:IPartyPostRenameEventGet the player who performed the command- Specified by:
getPartyPlayerin interfaceIPartyPostRenameEvent- Returns:
- the
PartyPlayeror null if not executed by a player
-
isAdmin
public boolean isAdmin()
Description copied from interface:IPartyPostRenameEventIs it an admin renaming?- Specified by:
isAdminin interfaceIPartyPostRenameEvent- Returns:
trueif the rename has been performed by an admin
-
-