Made ItemGadgets Free.
Removed queue dom shop.
This commit is contained in:
parent
0bf702902e
commit
4fca244812
@ -34,6 +34,7 @@ public abstract class ItemGadget extends Gadget
|
||||
_recharge = recharge;
|
||||
_gemsPerUse = gemsPerUse;
|
||||
_nearParkour = canUseNearParkour;
|
||||
Free = true;
|
||||
}
|
||||
|
||||
public HashSet<Player> GetActive()
|
||||
|
@ -169,7 +169,7 @@ public class GadgetPage extends ShopPageBase<GadgetManager, GadgetShop>
|
||||
itemLore.add(C.cBlack);
|
||||
itemLore.addAll(Arrays.asList(gadget.GetDescription()));
|
||||
|
||||
if (gadget.GetCost(CurrencyType.Gems) == -1 || DonationManager.Get(Player.getName()).OwnsUnknownPackage(gadget.GetName()))
|
||||
if (gadget.IsFree() || DonationManager.Get(Player.getName()).OwnsUnknownPackage(gadget.GetName()))
|
||||
{
|
||||
if (gadget.GetActive().contains(Player))
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ public class ServerManager extends MiniPlugin
|
||||
new ServerManagerUpdater(this);
|
||||
_quickShop = new QuickShop(this, clientManager, donationManager, "Quick Menu");
|
||||
_lobbyShop = new LobbyShop(this, clientManager, donationManager, "Lobby Menu");
|
||||
_domShop = new QueueShop(_queueManager, clientManager, donationManager, "Dominate");
|
||||
//_domShop = new new QueueShop(_queueManager, clientManager, donationManager, "Dominate");
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
@ -182,6 +182,7 @@ public class ServerManager extends MiniPlugin
|
||||
if (event.getType() != UpdateType.SEC)
|
||||
return;
|
||||
|
||||
/*
|
||||
for (final Player player : _queueManager.findPlayersNeedingPrompt())
|
||||
{
|
||||
player.playSound(player.getLocation(), Sound.ENDERDRAGON_GROWL, 5f, 1f);
|
||||
@ -197,6 +198,7 @@ public class ServerManager extends MiniPlugin
|
||||
}
|
||||
}, 20);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
@ -643,7 +645,7 @@ public class ServerManager extends MiniPlugin
|
||||
@SuppressWarnings("rawtypes")
|
||||
public ShopBase getDominateShop()
|
||||
{
|
||||
return _domShop;
|
||||
return _serverNpcShopMap.get("Dominate");
|
||||
}
|
||||
|
||||
public ServerNpcShop getBridgesShop()
|
||||
|
Loading…
Reference in New Issue
Block a user