1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-18 09:43:00 +01:00

Do not mark a PlayerProfile as clean if it failed to save

DatabaseManager.saveUser() now returns a success value, which is used by PlayerProfile to determine whether or not it should be considered clean.
This commit is contained in:
riking
2013-10-05 15:18:10 -07:00
committed by TfT_02
parent f75fe3cc89
commit c9858dfd49
4 changed files with 31 additions and 22 deletions

View File

@@ -34,8 +34,9 @@ public interface DatabaseManager {
* Save a user to the database.
*
* @param profile The profile of the player to save
* @return true if successful, false on failure
*/
public void saveUser(PlayerProfile profile);
public boolean saveUser(PlayerProfile profile);
/**
* Retrieve leaderboard info.