mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 19:12:22 +01:00
12 lines
560 B
Diff
12 lines
560 B
Diff
|
--- a/net/minecraft/server/commands/BanIpCommands.java
|
||
|
+++ b/net/minecraft/server/commands/BanIpCommands.java
|
||
|
@@ -66,7 +66,7 @@
|
||
|
}
|
||
|
|
||
|
for (ServerPlayer serverPlayer : list) {
|
||
|
- serverPlayer.connection.disconnect(Component.translatable("multiplayer.disconnect.ip_banned"));
|
||
|
+ serverPlayer.connection.disconnect(Component.translatable("multiplayer.disconnect.ip_banned"), org.bukkit.event.player.PlayerKickEvent.Cause.IP_BANNED); // Paper - kick event cause
|
||
|
}
|
||
|
|
||
|
return list.size();
|