Skip to content

Commit

Permalink
2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Jul 28, 2024
1 parent 0a76fe4 commit bbd3b69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.lokka30</groupId>
<artifactId>PhantomWorlds</artifactId>
<version>2.0.10</version>
<version>2.0.11</version>

<name>PhantomWorlds</name>
<description>The Robust World Manager for Minecraft Servers</description>
Expand Down Expand Up @@ -86,7 +86,7 @@
<dependency>
<groupId>dev.rollczi</groupId>
<artifactId>litecommands-core</artifactId>
<version>3.3.4</version>
<version>3.4.1</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit bbd3b69

Please sign in to comment.