From bbd3b69aa13d68fc00bac203f5f4ef67af73d4f8 Mon Sep 17 00:00:00 2001 From: Daniel V Date: Sat, 27 Jul 2024 21:34:45 -0400 Subject: [PATCH] 2.0.11 --- pom.xml | 4 ++-- .../java/me/lokka30/phantomworlds/managers/WorldManager.java | 5 ++++- src/main/resources/plugin.yml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 35ebeb9..cb2db52 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.lokka30 PhantomWorlds - 2.0.10 + 2.0.11 PhantomWorlds The Robust World Manager for Minecraft Servers @@ -86,7 +86,7 @@ dev.rollczi litecommands-core - 3.3.4 + 3.4.1 compile diff --git a/src/main/java/me/lokka30/phantomworlds/managers/WorldManager.java b/src/main/java/me/lokka30/phantomworlds/managers/WorldManager.java index 33858db..8487483 100644 --- a/src/main/java/me/lokka30/phantomworlds/managers/WorldManager.java +++ b/src/main/java/me/lokka30/phantomworlds/managers/WorldManager.java @@ -16,6 +16,7 @@ import java.io.IOException; import java.util.HashSet; import java.util.LinkedHashMap; +import java.util.Locale; import java.util.Map; import java.util.UUID; @@ -59,7 +60,9 @@ public void loadManagedWorlds() { //noinspection ConstantConditions for(final String worldName : PhantomWorlds.instance().data.getConfig().getConfigurationSection("worlds-to-load").getKeys(false)) { - if(worldName.equalsIgnoreCase(defaultWorld) || worldName.startsWith(defaultWorld)) { + if(worldName.equalsIgnoreCase(defaultWorld) + || worldName.startsWith(defaultWorld) && worldName.toLowerCase(Locale.ROOT).contains("nether") + || worldName.startsWith(defaultWorld) && worldName.toLowerCase(Locale.ROOT).contains("end")) { continue; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a7c7c3e..1cb60db 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,7 +5,7 @@ # / / | `.__/| / | \__/ `._.' / ' / |,' \,' `._.' / /\__ `___,' \___.' name: 'PhantomWorlds' -version: '2.0.10' +version: '2.0.11' description: 'The Robust World Manager for Minecraft Servers' authors: [ 'creatorfromhell', 'lokka30' ] website: 'https://github.com/lokka30/PhantomWorlds'