Skip to content

Commit

Permalink
1.5.0-SNAPSHOT
Browse files Browse the repository at this point in the history
- Add /dungeons help (Tab complete is better)
- Use dungeon world in normal world if that world doesn't exist on Dungeons/Worlds folder
  • Loading branch information
VoChiDanh committed Aug 21, 2024
1 parent d44f7e8 commit 61e545b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/danh/dungeons/Dungeon/StageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ public static void startDungeon(Player p, String dungeonID) {
String worldName = config.getString("world");
if (worldName != null) {
File srcDir = new File(Dungeons.getDungeonCore().getDataFolder(), "Worlds/" + worldName);
if (srcDir.exists()) {
File srcNormalDir = new File(Bukkit.getServer().getWorldContainer(), worldName);
if (srcDir.exists() || srcNormalDir.exists()) {
if (config.contains("name") && config.getString("name") != null) {
if (!status.containsKey(p) || (status.containsKey(p) && status.get(p).equals(DungeonStatus.NONE))) {
if (StageManager.checkRequirements(p, dungeonID)) {
Expand Down

0 comments on commit 61e545b

Please sign in to comment.