diff --git a/patches/server/Add-config-option-for-logging-player-ip-addresses.patch b/patches/server/Add-config-option-for-logging-player-ip-addresses.patch index f7a77163da..fbc4f30888 100644 --- a/patches/server/Add-config-option-for-logging-player-ip-addresses.patch +++ b/patches/server/Add-config-option-for-logging-player-ip-addresses.patch @@ -93,3 +93,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } // Spigot start - spawn location event +@@ -0,0 +0,0 @@ public abstract class PlayerList { + playerconnection.playerJoinReady = () -> { + postChunkLoadJoin( + player, finalWorldserver, connection, playerconnection, +- nbttagcompound, connection.getRemoteAddress().toString(), lastKnownName ++ nbttagcompound, com.destroystokyo.paper.PaperConfig.logPlayerIpAddresses ? connection.getRemoteAddress().toString() : "", lastKnownName // Paper + ); + }; + });