From 24b2709c52b25b390c84e5e5d426cda19d784fad Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 11 Jan 2019 22:14:50 +0100 Subject: [PATCH] Fix .raw map being counted in /dxl and /dxl reload --- src/main/java/de/erethon/dungeonsxl/command/MainCommand.java | 2 +- src/main/java/de/erethon/dungeonsxl/command/ReloadCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/erethon/dungeonsxl/command/MainCommand.java b/src/main/java/de/erethon/dungeonsxl/command/MainCommand.java index 59efd4ad..acb68736 100644 --- a/src/main/java/de/erethon/dungeonsxl/command/MainCommand.java +++ b/src/main/java/de/erethon/dungeonsxl/command/MainCommand.java @@ -45,7 +45,7 @@ public class MainCommand extends DCommand { public void onExecute(String[] args, CommandSender sender) { PluginManager plugins = Bukkit.getServer().getPluginManager(); - int maps = DungeonsXL.MAPS.listFiles().length; + int maps = DungeonsXL.MAPS.listFiles().length - 1; int dungeons = DungeonsXL.DUNGEONS.listFiles().length; int loaded = instances.getEditWorlds().size() + instances.getGameWorlds().size(); int players = dPlayers.getDGamePlayers().size(); diff --git a/src/main/java/de/erethon/dungeonsxl/command/ReloadCommand.java b/src/main/java/de/erethon/dungeonsxl/command/ReloadCommand.java index a9d9bd07..edb0cbf7 100644 --- a/src/main/java/de/erethon/dungeonsxl/command/ReloadCommand.java +++ b/src/main/java/de/erethon/dungeonsxl/command/ReloadCommand.java @@ -74,7 +74,7 @@ public class ReloadCommand extends DCommand { dPlayer.leave(); } - int maps = DungeonsXL.MAPS.listFiles().length; + int maps = DungeonsXL.MAPS.listFiles().length - 1; int dungeons = DungeonsXL.DUNGEONS.listFiles().length; int loaded = instances.getEditWorlds().size() + instances.getGameWorlds().size(); int players = this.dPlayers.getDGamePlayers().size();