Remove recharge data on quit instead of later
This commit is contained in:
parent
19eeae7f7f
commit
a59dde44c6
@ -243,13 +243,7 @@ public class Recharge extends MiniPlugin
|
||||
@EventHandler
|
||||
public void clearPlayer(final ClientUnloadEvent event)
|
||||
{
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(_plugin, new Runnable() {
|
||||
public void run()
|
||||
{
|
||||
_recharge.remove(event.GetName());
|
||||
}
|
||||
}
|
||||
, 20 * 60 * 2); // Retain info for 2 minutes
|
||||
_recharge.remove(event.GetName());
|
||||
}
|
||||
|
||||
public void setDisplayForce(Player player, String ability, boolean displayForce)
|
||||
|
Loading…
Reference in New Issue
Block a user