mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Filter ip address on join if setting is true (#6748)
This commit is contained in:
@@ -93,3 +93,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Spigot start - spawn location event
|
// 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
|
||||||
|
);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
Reference in New Issue
Block a user