mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Allow database levels to be set manually and updated across servers
This commit is contained in:
1 parent
d49e44b0ba
commit
d06361b3c9
10 files changed
+116
-10
No files matched your search
@@ -24,9 +24,32 @@ import java.util.List;
|
||||
|
||||
public interface Levels {
|
||||
|
||||
/**
|
||||
* Checks for a stored level for this user, and loads it to their object if found.
|
||||
*
|
||||
* @param user User to load.
|
||||
*/
|
||||
public void loadLevelToUser(User user);
|
||||
|
||||
/**
|
||||
* Saves the user's level to storage.
|
||||
*
|
||||
* @param user User to save.
|
||||
*/
|
||||
public void saveLevelFromUser(User user);
|
||||
|
||||
/**
|
||||
* Saves a list of user's levels to storage.
|
||||
* Used on server shutdown / reload.
|
||||
*
|
||||
* @param users List of users to save.
|
||||
*/
|
||||
public void saveLevelsFromUsers(List<User> users);
|
||||
|
||||
/**
|
||||
* Check to see if the user's level has been manually changed since it was loaded, and update it if needed
|
||||
*
|
||||
* @param user User to update.
|
||||
*/
|
||||
public void updateLevelToUser(User user);
|
||||
}
|
||||
Reference in new issue
Block a user