mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 10:44:39 +01:00
11 lines
681 B
Diff
11 lines
681 B
Diff
--- a/net/minecraft/server/commands/KickCommand.java
|
|
+++ b/net/minecraft/server/commands/KickCommand.java
|
|
@@ -48,7 +_,7 @@
|
|
|
|
for (ServerPlayer serverPlayer : players) {
|
|
if (!source.getServer().isSingleplayerOwner(serverPlayer.getGameProfile())) {
|
|
- serverPlayer.connection.disconnect(reason);
|
|
+ serverPlayer.connection.disconnect(reason, org.bukkit.event.player.PlayerKickEvent.Cause.KICK_COMMAND); // Paper - kick event cause
|
|
source.sendSuccess(() -> Component.translatable("commands.kick.success", serverPlayer.getDisplayName(), reason), true);
|
|
i++;
|
|
}
|