Fix .raw map being counted in /dxl and /dxl reload

This commit is contained in:
Daniel Saukel 2019-01-11 22:14:50 +01:00
parent f7ca2c2dbd
commit 24b2709c52
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();