Only schedule a user cleanup when LuckPermsApi#cleanupUser is called

This commit is contained in:
Luck 2017-09-18 20:50:50 +01:00
parent a3d78f4d0e
commit 5b742eb5b2
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -161,7 +161,7 @@ public class ApiProvider implements LuckPermsApi {
@Override @Override
public void cleanupUser(@NonNull User user) { public void cleanupUser(@NonNull User user) {
plugin.getUserManager().cleanup(UserDelegate.cast(user)); plugin.getUserManager().scheduleUnload(plugin.getUuidCache().getExternalUUID(UserDelegate.cast(user).getUuid()));
} }
@Override @Override