13
0
geforkt von Mirrors/Paper

12 Zeilen
587 B
Diff

2021-05-15 20:30:45 -07:00
--- a/net/minecraft/server/commands/BanIpCommands.java
+++ b/net/minecraft/server/commands/BanIpCommands.java
2024-12-14 13:42:43 -08:00
@@ -68,7 +_,7 @@
2021-05-15 20:30:45 -07:00
}
2024-12-14 13:42:43 -08:00
for (ServerPlayer serverPlayer : playersWithAddress) {
2021-05-15 20:30:45 -07:00
- 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
}
2024-12-14 13:42:43 -08:00
return playersWithAddress.size();