From d224efce3cb43a67b23923bbdb9a1631b1c3991b Mon Sep 17 00:00:00 2001 From: Dawson Hessler Date: Mon, 30 Oct 2023 10:12:14 -0400 Subject: [PATCH] Updating depends to make it work --- Assembly/dependency-reduced-pom.xml | 2 +- Bukkit/dependency-reduced-pom.xml | 4 ++-- Bungee/dependency-reduced-pom.xml | 4 ++-- .../brighten/antivpn/utils/config/YamlConfiguration.java | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assembly/dependency-reduced-pom.xml b/Assembly/dependency-reduced-pom.xml index 5924f7c..461410c 100644 --- a/Assembly/dependency-reduced-pom.xml +++ b/Assembly/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ AntiVPN dev.brighten.antivpn - 1.9.1 + 1.9.2 4.0.0 Assembly diff --git a/Bukkit/dependency-reduced-pom.xml b/Bukkit/dependency-reduced-pom.xml index d81027d..5565256 100644 --- a/Bukkit/dependency-reduced-pom.xml +++ b/Bukkit/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ AntiVPN dev.brighten.antivpn - 1.9.1 + 1.9.2 4.0.0 Bukkit @@ -65,7 +65,7 @@ dev.brighten.antivpn Common - 1.9.1 + 1.9.2 provided diff --git a/Bungee/dependency-reduced-pom.xml b/Bungee/dependency-reduced-pom.xml index 98c91a2..86274ce 100644 --- a/Bungee/dependency-reduced-pom.xml +++ b/Bungee/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ AntiVPN dev.brighten.antivpn - 1.9.1 + 1.9.2 4.0.0 Bungee @@ -58,7 +58,7 @@ dev.brighten.antivpn Common - 1.9.1 + 1.9.2 provided diff --git a/Common/src/main/java/dev/brighten/antivpn/utils/config/YamlConfiguration.java b/Common/src/main/java/dev/brighten/antivpn/utils/config/YamlConfiguration.java index d942ba0..8dcf5c9 100644 --- a/Common/src/main/java/dev/brighten/antivpn/utils/config/YamlConfiguration.java +++ b/Common/src/main/java/dev/brighten/antivpn/utils/config/YamlConfiguration.java @@ -23,17 +23,17 @@ public class YamlConfiguration extends ConfigurationProvider @Override protected Yaml initialValue() { - Representer representer = new Representer() + DumperOptions options = new DumperOptions(); + options.setDefaultFlowStyle( DumperOptions.FlowStyle.BLOCK ); + Representer representer = new Representer(options) { { representers.put( Configuration.class, data -> represent( ( (Configuration) data ).self )); } }; - DumperOptions options = new DumperOptions(); - options.setDefaultFlowStyle( DumperOptions.FlowStyle.BLOCK ); representer.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); - return new Yaml( new Constructor(), representer, options ); + return new Yaml( new Constructor(new LoaderOptions()), representer, options ); } };