tridents/xbows WIP part 1

This commit is contained in:
nossr50
2020-07-06 20:44:10 -07:00
parent 919907f46a
commit ea448dfa47
29 changed files with 622 additions and 36 deletions

View File

@ -28,13 +28,13 @@ public class ZipLibrary {
public static void mcMMOBackup() throws IOException {
if (Config.getInstance().getUseMySQL()) {
mcMMO.p.debug("This server is running in SQL Mode.");
mcMMO.p.debug("Only config files will be backed up.");
mcMMO.p.getLogger().info("This server is running in SQL Mode.");
mcMMO.p.getLogger().info("Only config files will be backed up.");
}
try {
if (BACKUP_DIR.mkdir()) {
mcMMO.p.debug("Created Backup Directory.");
mcMMO.p.getLogger().info("Created Backup Directory.");
}
}
catch (Exception e) {
@ -61,7 +61,7 @@ public class ZipLibrary {
}
// Actually do something
mcMMO.p.debug("Backing up your mcMMO Configuration... ");
mcMMO.p.getLogger().info("Backing up your mcMMO Configuration... ");
packZip(fileZip, sources);
}
@ -81,7 +81,7 @@ public class ZipLibrary {
zipOut.flush();
zipOut.close();
mcMMO.p.debug("Backup Completed.");
mcMMO.p.getLogger().info("Backup Completed.");
}
private static String buildPath(String path, String file) {