mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Tabs are bad and we should feel bad for having them.
This commit is contained in:
parent
46268a7cf3
commit
6b5e615a23
@ -15,7 +15,6 @@ Version 1.3.07
|
|||||||
+ Added permission nodes for Treasure & Magic Hunter for Fishing
|
+ Added permission nodes for Treasure & Magic Hunter for Fishing
|
||||||
+ Added config options for enabling/disabling specific double drops
|
+ Added config options for enabling/disabling specific double drops
|
||||||
+ Added automatic zip backup of flatfile database
|
+ Added automatic zip backup of flatfile database
|
||||||
= Fixed zip backup performing when running in SQL mode.
|
|
||||||
= Fixed bug where the permission node for Impact didn't work
|
= Fixed bug where the permission node for Impact didn't work
|
||||||
= Fixed some bypass nodes defaulting true for Ops
|
= Fixed some bypass nodes defaulting true for Ops
|
||||||
! Changed Mining to ignore blocks when the pick is enchanted with Silk Touch
|
! Changed Mining to ignore blocks when the pick is enchanted with Silk Touch
|
||||||
|
@ -25,7 +25,6 @@ public class ZipLibrary {
|
|||||||
private static File Leaderboards = new File(mcMMO.leaderboardDirectory);
|
private static File Leaderboards = new File(mcMMO.leaderboardDirectory);
|
||||||
|
|
||||||
public static void mcMMObackup() throws IOException {
|
public static void mcMMObackup() throws IOException {
|
||||||
|
|
||||||
if (Config.getInstance().getUseMySQL()) {
|
if (Config.getInstance().getUseMySQL()) {
|
||||||
System.out.println("No Backup performed, in SQL Mode.");
|
System.out.println("No Backup performed, in SQL Mode.");
|
||||||
return;
|
return;
|
||||||
@ -58,8 +57,7 @@ public class ZipLibrary {
|
|||||||
packZip(fileZip, sources);
|
packZip(fileZip, sources);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void packZip(File output, List<File> sources) throws IOException
|
private static void packZip(File output, List<File> sources) throws IOException {
|
||||||
{
|
|
||||||
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(output));
|
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(output));
|
||||||
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
|
zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
|
||||||
|
|
||||||
@ -88,7 +86,7 @@ public class ZipLibrary {
|
|||||||
|
|
||||||
private static void zipDir(ZipOutputStream zos, String path, File dir) throws IOException {
|
private static void zipDir(ZipOutputStream zos, String path, File dir) throws IOException {
|
||||||
if (!dir.canRead()) {
|
if (!dir.canRead()) {
|
||||||
System.out.println("Cannot read " + dir.getCanonicalPath() + " (maybe because of permissions)");
|
System.out.println("Cannot read " + dir.getCanonicalPath() + " (Maybe because of permissions?)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user