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
ConstructorsConstructorDescriptionBungeePartiesPartyPostRenameEvent(Party party, String oldName, String newName, PartyPlayer player, boolean isAdmin) -
Method Summary
Methods inherited from class com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods 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
-
BungeePartiesPartyPostRenameEvent
public BungeePartiesPartyPostRenameEvent(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
-