FileWriter is pointless here.

This commit is contained in:
GJ 2012-07-04 09:45:47 -04:00
parent 24d8769b5b
commit dbc7277ba9

View File

@ -1,7 +1,6 @@
package com.gmail.nossr50.util; package com.gmail.nossr50.util;
import java.io.File; import java.io.File;
import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -21,16 +20,12 @@ public class Users {
public static void loadUsers() { public static void loadUsers() {
new File(mcMMO.flatFileDirectory).mkdir(); new File(mcMMO.flatFileDirectory).mkdir();
new File(mcMMO.leaderboardDirectory).mkdir(); new File(mcMMO.leaderboardDirectory).mkdir();
new File(mcMMO.usersFile).createNewFile();
if (!theDir.exists()) { try {
try { new File(mcMMO.usersFile).createNewFile();
FileWriter writer = new FileWriter(theDir); }
writer.close(); catch (IOException e) {
} e.printStackTrace();
catch (IOException e) {
e.printStackTrace();
}
} }
} }