mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
FileWriter is pointless here.
This commit is contained in:
parent
24d8769b5b
commit
dbc7277ba9
@ -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,18 +20,14 @@ 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 {
|
||||||
FileWriter writer = new FileWriter(theDir);
|
new File(mcMMO.usersFile).createNewFile();
|
||||||
writer.close();
|
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new user.
|
* Add a new user.
|
||||||
|
Loading…
Reference in New Issue
Block a user