From 7ee04b74ea36dcfa5b174dde44fc1b1f3e157e1d Mon Sep 17 00:00:00 2001 From: Dawson Hessler Date: Wed, 22 Dec 2021 09:51:26 -0500 Subject: [PATCH] Fixing config --- Common/pom.xml | 6 ++++++ .../java/dev/brighten/antivpn/velocity/util/Config.java | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Common/pom.xml b/Common/pom.xml index c46a7cb..b3e903c 100644 --- a/Common/pom.xml +++ b/Common/pom.xml @@ -58,6 +58,12 @@ jar compile + + com.h2database + h2 + 1.4.200 + provided + \ No newline at end of file diff --git a/Velocity/src/main/java/dev/brighten/antivpn/velocity/util/Config.java b/Velocity/src/main/java/dev/brighten/antivpn/velocity/util/Config.java index 39fa261..aec2ecb 100644 --- a/Velocity/src/main/java/dev/brighten/antivpn/velocity/util/Config.java +++ b/Velocity/src/main/java/dev/brighten/antivpn/velocity/util/Config.java @@ -29,10 +29,6 @@ public class Config { dataFolder.mkdir(); } this.file.createNewFile(); - try (final InputStream is =VelocityPlugin.INSTANCE.getClass().getResourceAsStream("config.yml"); - final OutputStream os = new FileOutputStream(this.file)) { - ByteStreams.copy(is, os); - } } this.configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(this.file); }