From b598047fef4ad4c0d715b6b3bbdf5401fff3c66c Mon Sep 17 00:00:00 2001 From: jonkke Date: Sun, 1 May 2022 14:52:50 -0700 Subject: [PATCH] =?UTF-8?q?P=C3=A4ivit=C3=A4=20'src/main/java/fi/flexplex/?= =?UTF-8?q?connect/FlexConnect.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/fi/flexplex/connect/FlexConnect.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/fi/flexplex/connect/FlexConnect.java b/src/main/java/fi/flexplex/connect/FlexConnect.java index db8bf35..f57a461 100644 --- a/src/main/java/fi/flexplex/connect/FlexConnect.java +++ b/src/main/java/fi/flexplex/connect/FlexConnect.java @@ -57,6 +57,11 @@ public final class FlexConnect extends JavaPlugin { paperConfig.set("settings.velocity-support.secret", "flexplex"); paperConfigModified = true; } + if (paperConfig.getBoolean("settings.unsupported-settings.perform-username-validation")) { + paperConfig.set("settings.unsupported-settings.perform-username-validation", false); + paperConfigModified = true; + } + if (paperConfigModified) { try { paperConfig.save("paper.yml");