Remove recharge data on quit instead of later

This commit is contained in:
samczsun 2016-10-02 14:26:48 -04:00 committed by Shaun Bennett
parent 19eeae7f7f
commit a59dde44c6

View File

@ -242,15 +242,9 @@ public class Recharge extends MiniPlugin
@EventHandler @EventHandler
public void clearPlayer(final ClientUnloadEvent event) public void clearPlayer(final ClientUnloadEvent event)
{
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(_plugin, new Runnable() {
public void run()
{ {
_recharge.remove(event.GetName()); _recharge.remove(event.GetName());
} }
}
, 20 * 60 * 2); // Retain info for 2 minutes
}
public void setDisplayForce(Player player, String ability, boolean displayForce) public void setDisplayForce(Player player, String ability, boolean displayForce)
{ {