Add PlayerKickEvent causes

This commit is contained in:
Jake Potrebic
2021-05-15 20:30:34 -07:00
parent c9ba0ebadb
commit 93e2ecfd49
2 changed files with 96 additions and 0 deletions

View File

@@ -335,6 +335,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
* @param message kick message
*/
void kick(final net.kyori.adventure.text.@Nullable Component message);
/**
* Kicks player with custom kick message and cause.
*
* @param message kick message
* @param cause kick cause
*/
void kick(final net.kyori.adventure.text.@Nullable Component message, org.bukkit.event.player.PlayerKickEvent.@NotNull Cause cause);
// Paper end
/**