13
0
geforkt von Mirrors/Paper
Paper/paper-server/patches/sources/net/minecraft/server/commands/BanIpCommands.java.patch
2024-12-14 13:42:45 -08:00

12 Zeilen
587 B
Diff

--- a/net/minecraft/server/commands/BanIpCommands.java
+++ b/net/minecraft/server/commands/BanIpCommands.java
@@ -68,7 +_,7 @@
}
for (ServerPlayer serverPlayer : playersWithAddress) {
- 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 playersWithAddress.size();