Package | Description |
---|---|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.player |
Modifier and Type | Method and Description |
---|---|
void |
Player.kick(@Nullable net.kyori.adventure.text.Component message,
PlayerKickEvent.Cause cause)
Kicks player with custom kick message and cause.
|
Modifier and Type | Method and Description |
---|---|
PlayerKickEvent.Cause |
PlayerKickEvent.getCause()
Gets the cause of this kick
|
static PlayerKickEvent.Cause |
PlayerKickEvent.Cause.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerKickEvent.Cause[] |
PlayerKickEvent.Cause.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
PlayerKickEvent(@NotNull Player playerKicked,
net.kyori.adventure.text.Component kickReason,
net.kyori.adventure.text.Component leaveMessage,
@NotNull PlayerKickEvent.Cause cause) |
Copyright © 2022. All rights reserved.