mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-16 20:44:43 +02:00
Changed how a few variables were initialized
This commit is contained in:
@ -13,19 +13,15 @@ import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||
|
||||
public class Users {
|
||||
|
||||
public static String location = mcMMO.usersFile;
|
||||
public static String directory = mcMMO.flatFileDirectory;
|
||||
public static String directoryb = mcMMO.leaderboardDirectory;
|
||||
|
||||
public static HashMap<String, PlayerProfile> players = new HashMap<String, PlayerProfile>();
|
||||
|
||||
/**
|
||||
* Load users.
|
||||
*/
|
||||
public static void loadUsers() {
|
||||
new File(directory).mkdir();
|
||||
new File(directoryb).mkdir();
|
||||
File theDir = new File(location);
|
||||
new File(mcMMO.p.flatFileDirectory).mkdir();
|
||||
new File(mcMMO.p.leaderboardDirectory).mkdir();
|
||||
File theDir = new File(mcMMO.p.usersFile);
|
||||
|
||||
if (!theDir.exists()) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user