Fixes for offline mode servers

This commit is contained in:
Luck committed 2016-09-16 21:24:25 +01:00
1 parent f2e06b56e7
commit be74b50762
7 files changed
+42 -30

No files matched your search

@@ -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) {