PaperMC/paper-server/patches/sources/net/minecraft/server/commands/BanPlayerCommands.java.patch
2024-12-14 13:42:45 -08:00

11 lines
643 B
Diff

--- a/net/minecraft/server/commands/BanPlayerCommands.java
+++ b/net/minecraft/server/commands/BanPlayerCommands.java
@@ -55,7 +_,7 @@
);
ServerPlayer player = source.getServer().getPlayerList().getPlayer(gameProfile.getId());
if (player != null) {
- player.connection.disconnect(Component.translatable("multiplayer.disconnect.banned"));
+ player.connection.disconnect(Component.translatable("multiplayer.disconnect.banned"), org.bukkit.event.player.PlayerKickEvent.Cause.BANNED); // Paper - kick event cause
}
}
}