mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
11 lines
668 B
Diff
11 lines
668 B
Diff
--- a/net/minecraft/server/commands/BanPlayerCommands.java
|
|
+++ b/net/minecraft/server/commands/BanPlayerCommands.java
|
|
@@ -55,7 +55,7 @@
|
|
);
|
|
ServerPlayer serverPlayer = source.getServer().getPlayerList().getPlayer(gameProfile.getId());
|
|
if (serverPlayer != null) {
|
|
- serverPlayer.connection.disconnect(Component.translatable("multiplayer.disconnect.banned"));
|
|
+ serverPlayer.connection.disconnect(Component.translatable("multiplayer.disconnect.banned"), org.bukkit.event.player.PlayerKickEvent.Cause.BANNED); // Paper - kick event cause
|
|
}
|
|
}
|
|
}
|