From a59dde44c62d92660061736361c8fd15202010ca Mon Sep 17 00:00:00 2001 From: samczsun Date: Sun, 2 Oct 2016 14:26:48 -0400 Subject: [PATCH] Remove recharge data on quit instead of later --- .../src/mineplex/core/recharge/Recharge.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/recharge/Recharge.java b/Plugins/Mineplex.Core/src/mineplex/core/recharge/Recharge.java index e9d4e2e63..6422651d6 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/recharge/Recharge.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/recharge/Recharge.java @@ -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)