mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 20:21:41 +01:00
Filter ip address on join if setting is true (#6748)
This commit is contained in:
parent
1bd2f3e523
commit
1dd5b0ab8e
@ -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
|
||||||
|
);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user