Remove recharge data on quit instead of later
This commit is contained in:
parent
19eeae7f7f
commit
a59dde44c6
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user