Move to external task

Only remove if we have it to remove
Only add if not already in memory
Don't load something we would immediately unload on removeUser
This commit is contained in:
NuclearW
2012-02-23 11:48:48 -05:00
parent b782225dde
commit 06b2a89646
3 changed files with 27 additions and 17 deletions

View File

@@ -0,0 +1,18 @@
package com.gmail.nossr50.runnables;
import org.bukkit.entity.Player;
import com.gmail.nossr50.Users;
public class RemoveProfileFromMemoryTask implements Runnable {
private Player player;
public RemoveProfileFromMemoryTask(Player player) {
this.player = player;
}
@Override
public void run() {
Users.removeUser(player);
}
}