Fix the energy shop

This commit is contained in:
Sam 2018-08-04 17:35:45 +01:00 committed by Alexander Meech
parent 1e7d36112b
commit 923849c3f9
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import mineplex.core.MiniPlugin;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilServer;
import mineplex.game.clans.core.ClaimLocation;
import mineplex.game.clans.shop.energy.EnergyShop;
public class ClanEnergyManager extends MiniPlugin implements Runnable
{
@ -21,6 +22,8 @@ public class ClanEnergyManager extends MiniPlugin implements Runnable
_clansManager = clansManager;
new EnergyShop(this, clansManager.getClientManager(), clansManager.getDonationManager());
// Wait 5 seconds and then tick every 60 seconds
_plugin.getServer().getScheduler().runTaskTimer(_plugin, this, 20 * 5, 20 * 60);
ClansQueueMessenger.getMessenger(UtilServer.getServerName()).registerListener(QueuePauseUpdateMessage.class, (pause, origin) ->