Files
paper-mc/paper-server/patches/sources/net/minecraft/server/commands/KickCommand.java.patch
Bjarne Koll b745ab65e6 Begin 1.21.6-pre1
Initial move of patches to rejected and non rejected source patches to
publish to patch-roulette.
2025-05-28 13:23:32 +02:00

12 lines
681 B
Diff

--- a/net/minecraft/server/commands/KickCommand.java
+++ b/net/minecraft/server/commands/KickCommand.java
@@ -50,7 +_,7 @@
for (ServerPlayer serverPlayer : players) {
if (!source.getServer().isSingleplayerOwner(serverPlayer.getGameProfile())) {
- serverPlayer.connection.disconnect(reason);
+ serverPlayer.connection.disconnect(reason, org.bukkit.event.player.PlayerKickEvent.Cause.KICK_COMMAND); // Paper - kick event cause
source.sendSuccess(() -> Component.translatable("commands.kick.success", serverPlayer.getDisplayName(), reason), true);
i++;
}