This commit is contained in:
Mini-Chiss 2014-07-08 12:40:28 -07:00
parent 65e7e1e0b3
commit 22709b0cd8
2 changed files with 13 additions and 6 deletions

View File

@ -357,11 +357,21 @@ public class MapParser extends JavaPlugin implements Listener
if (_curParse.Update())
{
_worldManager.finalizeParsedWorld(_curParse.getGameType(), _curParse.getWorld());
Announce("Parse Completed!");
Announce("Cleaning and Creating ZIP...");
try
{
_worldManager.finalizeParsedWorld(_curParse.getGameType(), _curParse.getWorld());
}
catch (Exception e)
{
Announce("Creating ZIP Failed! Please Try Again!");
e.printStackTrace();
}
_curParse = null;
Announce("Parse Completed!");
}
}

View File

@ -98,9 +98,6 @@ public class WorldManager
FileUtils.deleteQuietly(new File(world.getName() + File.separator + file.getName()));
}
//System.out.println("Path A: " + Paths.get("").toAbsolutePath().toString());
//System.out.println("Path B: " + Paths.get("").toAbsolutePath().toString() + File.separator + world.getName() + File.separator);
ZipUtil.ZipFolders(Paths.get("").toAbsolutePath().toString(), world.getName() + ".zip", dirList, fileList);
try