allow disabling ips in webhook

This commit is contained in:
Colbster937
2026-01-11 00:23:02 -06:00
parent 50e2a954cd
commit 8f1fd3f1f4
2 changed files with 2 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ public final class OriginBlacklist {
player.getName().replaceAll("_", "\\_"), player.getName().replaceAll("_", "\\_"),
player.getOrigin(), player.getOrigin(),
player.getBrand(), player.getBrand(),
player.getAddr(), this.config.get("discord.send_ips").getAsBoolean() ? player.getAddr() : "*\\*CENSORED\\**",
player.getPVN(), player.getPVN(),
userAgent, userAgent,
player.isRewind() ? "YES" : "NO", player.isRewind() ? "YES" : "NO",

View File

@@ -216,6 +216,7 @@ public final class OriginBlacklistConfig {
final Json5Object dobj = new Json5Object(); final Json5Object dobj = new Json5Object();
addJSONObj(dobj, "enabled", Json5Primitive.fromBoolean(false), null); addJSONObj(dobj, "enabled", Json5Primitive.fromBoolean(false), null);
addJSONObj(dobj, "webhook_urls", new Json5Array(), null); addJSONObj(dobj, "webhook_urls", new Json5Array(), null);
addJSONObj(dobj, "send_ips", Json5Primitive.fromBoolean(true), null);
addJSONObj(obj, "discord", dobj, null); addJSONObj(obj, "discord", dobj, null);
final Json5Object uobj = new Json5Object(); final Json5Object uobj = new Json5Object();
addJSONObj(uobj, "enabled", Json5Primitive.fromBoolean(true), null); addJSONObj(uobj, "enabled", Json5Primitive.fromBoolean(true), null);