Examples of CurrencyAmountEvent


Examples of com.Acrobot.ChestShop.Events.Economy.CurrencyAmountEvent

        ItemStack[] stock = event.getStock();

        double price = event.getPrice();
        double pricePerItem = event.getPrice() / InventoryUtil.countItems(stock);

        CurrencyAmountEvent currencyAmountEvent = new CurrencyAmountEvent(client);
        ChestShop.callEvent(currencyAmountEvent);

        BigDecimal walletMoney = currencyAmountEvent.getAmount();

        CurrencyCheckEvent currencyCheckEvent = new CurrencyCheckEvent(BigDecimal.valueOf(price), client);
        ChestShop.callEvent(currencyCheckEvent);

        if (!currencyCheckEvent.hasEnough()) {
View Full Code Here

Examples of com.Acrobot.ChestShop.Events.Economy.CurrencyAmountEvent

        ItemStack[] stock = event.getStock();

        double price = event.getPrice();
        double pricePerItem = event.getPrice() / InventoryUtil.countItems(stock);

        CurrencyAmountEvent currencyAmountEvent = new CurrencyAmountEvent(owner, client.getWorld());
        ChestShop.callEvent(currencyAmountEvent);

        BigDecimal walletMoney = currencyAmountEvent.getAmount();

        if (Economy.isOwnerEconomicallyActive(event.getOwnerInventory())) {
            CurrencyCheckEvent currencyCheckEvent = new CurrencyCheckEvent(BigDecimal.valueOf(price), owner, client.getWorld());
            ChestShop.callEvent(currencyCheckEvent);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.