Made things cleaner

This commit is contained in:
bm01
2012-06-25 14:30:55 +02:00
parent 76afd5a7ca
commit b8e9269488
5 changed files with 26 additions and 20 deletions

View File

@ -58,13 +58,31 @@ public class Users {
return playerProfile;
}
/*
* Remove a user.
*
* @param playerName The name of the player to remove
*/
public static void remove(String playerName) {
profiles.remove(playerName);
}
/**
* Clear all users.
*/
public static void clearUsers() {
public static void clearAll() {
profiles.clear();
}
/*
* Save all users.
*/
public static void saveAll() {
for (PlayerProfile playerProfile : profiles.values()) {
playerProfile.save();
}
}
/**
* Get all PlayerProfiles.
*