Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit fd296ab

Browse files
Merge pull request #37 from Refrac/master
Fix plugin.conf on velocity not loading properly
2 parents 5f71c38 + eaee1c9 commit fd296ab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

balancer-velocity/src/main/java/com/jaimemartz/playerbalancer/velocity/PlayerBalancer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
@Plugin(
5454
id = "playerbalancer",
5555
name = "PlayerBalancer Velocity",
56-
version = "2.3.3",
56+
version = "2.3.4",
5757
description = "PlayerBalancer is a plugin for setting up a network with multiple lobbies of different types.",
5858
authors = {"jaime29010", "BGHDDevelopment", "HappyAreaBean"},
5959
dependencies = {
@@ -160,10 +160,10 @@ private void execStart() {
160160
if (!dataDirectory.toFile().exists())
161161
dataDirectory.toFile().mkdir();
162162

163-
File file = new File(dataDirectory.toFile(), "plugin.conf");
163+
File file = new File(dataDirectory.toFile(), "/plugin.conf");
164164

165165
if (!file.exists()) {
166-
try (InputStream in = getClass().getResourceAsStream("velocity.conf")) {
166+
try (InputStream in = getClass().getResourceAsStream("/velocity.conf")) {
167167
Files.copy(in, file.toPath());
168168
} catch (IOException e) {
169169
logger.error("Unable to copy velocity.conf", e);

0 commit comments

Comments
 (0)