2022-12-26 05:22:08 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: NonSwag <mrminecraft00@gmail.com>
|
|
|
|
Date: Thu, 8 Dec 2022 20:25:05 +0100
|
|
|
|
Subject: [PATCH] Add missing SpigotConfig logCommands check
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
2023-02-13 10:36:25 +01:00
|
|
|
index 354b6e86b789ce80fe8f28384e4ca783c37c9007..aa11c64c74e1fd875161c9a80a16dbba6738bf1d 100644
|
2022-12-26 05:22:08 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
|
|
|
@@ -2256,7 +2256,9 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
|
|
|
private void performChatCommand(ServerboundChatCommandPacket packet, LastSeenMessages lastSeenMessages) {
|
|
|
|
// CraftBukkit start
|
|
|
|
String command = "/" + packet.command();
|
|
|
|
+ if (org.spigotmc.SpigotConfig.logCommands) { // Paper
|
|
|
|
ServerGamePacketListenerImpl.LOGGER.info(this.player.getScoreboardName() + " issued server command: " + command);
|
|
|
|
+ } // Paper
|
|
|
|
|
|
|
|
PlayerCommandPreprocessEvent event = new PlayerCommandPreprocessEvent(this.getCraftPlayer(), command, new LazyPlayerSet(this.server));
|
|
|
|
this.cserver.getPluginManager().callEvent(event);
|