diff --git a/patches/api/Adventure.patch b/patches/api/Adventure.patch index df4664ff68..1ec4c6c86f 100644 --- a/patches/api/Adventure.patch +++ b/patches/api/Adventure.patch @@ -1749,6 +1749,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start + /** ++ * Kicks the player with the default kick message. ++ * @see #kick(Component) ++ */ ++ void kick(); ++ /** + * Kicks player with custom kick message. + * + * @param message kick message diff --git a/patches/server/Add-PlayerKickEvent-causes.patch b/patches/server/Add-PlayerKickEvent-causes.patch index 7ba1a38fe7..2170b2f677 100644 --- a/patches/server/Add-PlayerKickEvent-causes.patch +++ b/patches/server/Add-PlayerKickEvent-causes.patch @@ -354,6 +354,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } // Paper start +@@ -0,0 +0,0 @@ public class CraftPlayer extends CraftHumanEntity implements Player { + @Override public void kick(final net.kyori.adventure.text.Component message) { + kick(message, org.bukkit.event.player.PlayerKickEvent.Cause.PLUGIN); diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index 55982c5ad3..261e63fdd1 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -2514,6 +2514,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } + // Paper start ++ private static final net.kyori.adventure.text.Component DEFAULT_KICK_COMPONENT = net.kyori.adventure.text.Component.translatable("multiplayer.disconnect.kicked"); ++ @Override ++ public void kick() { ++ this.kick(DEFAULT_KICK_COMPONENT); ++ } ++ + @Override + public void kick(final net.kyori.adventure.text.Component message) { + org.spigotmc.AsyncCatcher.catchOp("player kick");