public class BungeePartiesPlayerPostLeaveEvent extends BungeePartiesEvent implements IPlayerPostLeaveEvent
Constructor and Description |
---|
BungeePartiesPlayerPostLeaveEvent(PartyPlayer player,
Party party,
LeaveCause cause,
PartyPlayer kicker) |
Modifier and Type | Method and Description |
---|---|
@NotNull LeaveCause |
getCause()
Get the leave cause
|
@Nullable PartyPlayer |
getKicker()
Get the kicker
|
@NotNull Party |
getParty()
Get the party
|
@NotNull PartyPlayer |
getPartyPlayer()
Get the player that left the party
|
getApi, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isKicked
getApi, setApi
public BungeePartiesPlayerPostLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPostLeaveEvent
getPartyPlayer
in interface IPlayerPostLeaveEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPostLeaveEvent
getParty
in interface IPlayerPostLeaveEvent
Party
@NotNull public @NotNull LeaveCause getCause()
IPlayerPostLeaveEvent
getCause
in interface IPlayerPostLeaveEvent
LeaveCause
of the event@Nullable public @Nullable PartyPlayer getKicker()
IPlayerPostLeaveEvent
getKicker
in interface IPlayerPostLeaveEvent
PartyPlayer
that has kicked the player, returns null
if IPlayerPostLeaveEvent.isKicked()
returns false
Copyright © 2023. All rights reserved.