From eaee1c9138e8dc464bbec966e3a60d3e09966081 Mon Sep 17 00:00:00 2001 From: Zachary Baldwin Date: Wed, 25 Oct 2023 01:02:07 -0500 Subject: [PATCH] Fix plugin.conf on velocity not loading properly --- .../jaimemartz/playerbalancer/velocity/PlayerBalancer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/PlayerBalancer.java b/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/PlayerBalancer.java index bbbeb36..7fcb796 100644 --- a/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/PlayerBalancer.java +++ b/balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/PlayerBalancer.java @@ -53,7 +53,7 @@ @Plugin( id = "playerbalancer", name = "PlayerBalancer Velocity", - version = "2.3.3", + version = "2.3.4", description = "PlayerBalancer is a plugin for setting up a network with multiple lobbies of different types.", authors = {"jaime29010", "BGHDDevelopment", "HappyAreaBean"}, dependencies = { @@ -160,10 +160,10 @@ private void execStart() { if (!dataDirectory.toFile().exists()) dataDirectory.toFile().mkdir(); - File file = new File(dataDirectory.toFile(), "plugin.conf"); + File file = new File(dataDirectory.toFile(), "/plugin.conf"); if (!file.exists()) { - try (InputStream in = getClass().getResourceAsStream("velocity.conf")) { + try (InputStream in = getClass().getResourceAsStream("/velocity.conf")) { Files.copy(in, file.toPath()); } catch (IOException e) { logger.error("Unable to copy velocity.conf", e);