supplies command for sieges

This commit is contained in:
NewGarbo 2016-01-22 15:27:10 +00:00
parent f25c7b0277
commit c524247777
3 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ import mineplex.core.common.util.UtilInv;
import mineplex.core.common.util.UtilPlayer; import mineplex.core.common.util.UtilPlayer;
import mineplex.game.clans.clans.ClansManager; import mineplex.game.clans.clans.ClansManager;
import mineplex.game.clans.clans.siege.cannon.Cannon; import mineplex.game.clans.clans.siege.cannon.Cannon;
import mineplex.game.clans.clans.siege.outpost.CommandSiegeSupplies;
import mineplex.game.clans.clans.siege.outpost.OutpostManager; import mineplex.game.clans.clans.siege.outpost.OutpostManager;
public class SiegeManager extends MiniPlugin public class SiegeManager extends MiniPlugin
@ -27,6 +28,8 @@ public class SiegeManager extends MiniPlugin
_clans = clans; _clans = clans;
_outpostManager = new OutpostManager(clans, this); _outpostManager = new OutpostManager(clans, this);
addCommand(new CommandSiegeSupplies(_outpostManager));
} }
@EventHandler @EventHandler

View File

@ -13,7 +13,7 @@ public class CommandSiegeSupplies extends CommandBase<OutpostManager>
{ {
public CommandSiegeSupplies(OutpostManager plugin) public CommandSiegeSupplies(OutpostManager plugin)
{ {
super(plugin, Rank.CMOD, "siegesupplies"); super(plugin, Rank.MODERATOR, "siege");
} }
@Override @Override

View File

@ -47,8 +47,6 @@ public class OutpostManager extends MiniPlugin
_clansManager = clansManager; _clansManager = clansManager;
_removalQueue = new ArrayList<>(); _removalQueue = new ArrayList<>();
addCommand(new CommandSiegeSupplies(this));
} }
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST)