public class VelocityPartiesPartyPostDeleteEvent extends VelocityPartiesEvent implements IPartyPostDeleteEvent
Constructor and Description |
---|
VelocityPartiesPartyPostDeleteEvent(Party party,
DeleteCause cause,
PartyPlayer kickedPlayer,
PartyPlayer commandSender) |
Modifier and Type | Method and Description |
---|---|
@NotNull DeleteCause |
getCause()
Get the delete cause
|
@Nullable PartyPlayer |
getCommandSender()
Get the player who performed the command
|
@Nullable PartyPlayer |
getKickedPlayer()
Get the kicked player
|
@NotNull Party |
getParty()
Get the deleted party
|
getApi, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPartyName
getApi, setApi
public VelocityPartiesPartyPostDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
@NotNull public @NotNull Party getParty()
IPartyPostDeleteEvent
getParty
in interface IPartyPostDeleteEvent
Party
@NotNull public @NotNull DeleteCause getCause()
IPartyPostDeleteEvent
getCause
in interface IPartyPostDeleteEvent
DeleteCause
of the delete@Nullable public @Nullable PartyPlayer getKickedPlayer()
IPartyPostDeleteEvent
getKickedPlayer
in interface IPartyPostDeleteEvent
PartyPlayer
of the kicked player, returns
null
if the delete cause is DeleteCause.DELETE
or
DeleteCause.TIMEOUT
@Nullable public @Nullable PartyPlayer getCommandSender()
IPartyPostDeleteEvent
getCommandSender
in interface IPartyPostDeleteEvent
PartyPlayer
who did the command, returns
null
if the delete cause is DeleteCause.TIMEOUT
Copyright © 2023. All rights reserved.