Fixes for offline mode servers

This commit is contained in:
Luck
2016-09-16 21:24:25 +01:00
Unverified
parent f2e06b56e7
commit be74b50762
7 changed files with 42 additions and 30 deletions
@@ -69,11 +69,11 @@ public class AbstractListener {
protected void onLeave(UUID uuid) {
final UuidCache cache = plugin.getUuidCache();
// Unload the user from memory when they disconnect;
cache.clearCache(uuid);
final User user = plugin.getUserManager().get(cache.getUUID(uuid));
plugin.getUserManager().unload(user);
// Unload the user from memory when they disconnect;
cache.clearCache(uuid);
}
protected void refreshPlayer(UUID uuid) {