Filter ip address on join if setting is true (#6748)
This commit is contained in:
parent
0d1e18795b
commit
975f2e5104
1 changed files with 10 additions and 1 deletions
|
@ -81,7 +81,7 @@ index 01fee879c946b6640da34d5890d686f0152437dc..494ca8fa8c742d4eac9fb11878d3b317
|
|||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/minecraft/server/players/PlayerList.java b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||
index ad9fb50791779a5fe7d22268b71bd10d9c9ff3f0..84b4b900e14628fddbaae6b00300929773df43a8 100644
|
||||
index ad9fb50791779a5fe7d22268b71bd10d9c9ff3f0..ea1f7c8bf220982a086d4ae1663ae445b8c6cebd 100644
|
||||
--- a/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||
+++ b/src/main/java/net/minecraft/server/players/PlayerList.java
|
||||
@@ -237,7 +237,7 @@ public abstract class PlayerList {
|
||||
|
@ -93,3 +93,12 @@ index ad9fb50791779a5fe7d22268b71bd10d9c9ff3f0..84b4b900e14628fddbaae6b003009297
|
|||
}
|
||||
|
||||
// Spigot start - spawn location event
|
||||
@@ -301,7 +301,7 @@ 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
|
||||
);
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue