From 439de99ae6eab663f69052a94d410af136788303 Mon Sep 17 00:00:00 2001 From: nivcoo <36514752+nivcoo@users.noreply.github.com> Date: Wed, 20 Oct 2021 22:36:32 +0200 Subject: [PATCH 1/2] improv. fix pom --- pom.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c75b4d3..4e92395 100644 --- a/pom.xml +++ b/pom.xml @@ -5,11 +5,11 @@ 4.0.0 com.technovision - homegui - 1.3 + HomeGUI + 1.4 jar - Homegui + ${project.artifactId} 1.8 @@ -18,6 +18,7 @@ clean package + ${project.name}-v${project.version} org.apache.maven.plugins From feaf6831ee88d673a9dd9f050db3753e355aa796 Mon Sep 17 00:00:00 2001 From: nivcoo <36514752+nivcoo@users.noreply.github.com> Date: Wed, 20 Oct 2021 22:37:17 +0200 Subject: [PATCH 2/2] improv. fix world name in 1.17 --- .../com/technovision/homegui/playerdata/EssentialsReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/technovision/homegui/playerdata/EssentialsReader.java b/src/main/java/com/technovision/homegui/playerdata/EssentialsReader.java index 5277833..215e5dd 100644 --- a/src/main/java/com/technovision/homegui/playerdata/EssentialsReader.java +++ b/src/main/java/com/technovision/homegui/playerdata/EssentialsReader.java @@ -44,7 +44,9 @@ private void initHomes() { for (String name : names) { Set data = fileReader.getConfigurationSection("homes." + name).getKeys(false); for (String info : data) { - if (info.matches("world")) { + if (info.matches("world-name")) { + world = fileReader.get("homes." + name + "." + info).toString(); + } else if (info.matches("world") && world == null) { world = fileReader.get("homes." + name + "." + info).toString(); } else if (info.matches("x")) { x = Double.parseDouble(fileReader.get("homes." + name + "." + info).toString());