Filter ip address on join if setting is true (#6748)

This commit is contained in:
Jake Potrebic 2021-10-08 00:30:52 -07:00
parent 1bd2f3e523
commit 1dd5b0ab8e

View file

@ -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() : "<ip address withheld>", lastKnownName // Paper
);
};
});