Class BukkitPartiesPartyPostRenameEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.party.BukkitPartiesPartyPostRenameEvent
- All Implemented Interfaces:
IPartyPostRenameEvent,PartiesEvent
public class BukkitPartiesPartyPostRenameEvent
extends BukkitPartiesEvent
implements IPartyPostRenameEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin) -
Method Summary
Methods inherited from class com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
getApi, getHandlerList, getHandlers, setApiMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
BukkitPartiesPartyPostRenameEvent
public BukkitPartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin)
-
-
Method Details
-
getParty
Description copied from interface:IPartyPostRenameEventGet the renamed party- Specified by:
getPartyin interfaceIPartyPostRenameEvent- Returns:
- the
Party
-
getOldPartyName
Description copied from interface:IPartyPostRenameEventGet the old party name- Specified by:
getOldPartyNamein interfaceIPartyPostRenameEvent- Returns:
- the old name of the party
-
getNewPartyName
Description copied from interface:IPartyPostRenameEventGet the new party name- Specified by:
getNewPartyNamein interfaceIPartyPostRenameEvent- Returns:
- the new name of the party
-
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
-