mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Filter ip address on join if setting is true (#6748)
This commit is contained in:
parent
1bd2f3e523
commit
1dd5b0ab8e
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue