mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Made things cleaner
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user