Examples of CurrencySubtractEvent


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

        if (Permission.has(player, NOFEE)) {
            return;
        }

        CurrencySubtractEvent subtractionEvent = new CurrencySubtractEvent(BigDecimal.valueOf(shopCreationPrice), player);
        ChestShop.callEvent(subtractionEvent);

        player.sendMessage(Messages.prefix(Messages.SHOP_FEE_PAID.replace("%amount", Economy.formatBalance(shopCreationPrice))));
    }
View Full Code Here

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

        return true;
    }

    public static boolean subtract(UUID name, World world, double amount) {
        CurrencySubtractEvent event = new CurrencySubtractEvent(BigDecimal.valueOf(amount), name, world);
        ChestShop.callEvent(event);

        return true;
    }
View Full Code Here

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

        CurrencyAddEvent currencyAddEvent = new CurrencyAddEvent(BigDecimal.valueOf(event.getPrice()),
                                                            event.getOwner().getUniqueId(),
                                                            event.getSign().getWorld());
        ChestShop.callEvent(currencyAddEvent);

        CurrencySubtractEvent currencySubtractEvent = new CurrencySubtractEvent(BigDecimal.valueOf(event.getPrice()), event.getClient());
        ChestShop.callEvent(currencySubtractEvent);
    }
View Full Code Here

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

    public static void onSellTransaction(TransactionEvent event) {
        if (event.getTransactionType() != SELL) {
            return;
        }

        CurrencySubtractEvent currencySubtractEvent = new CurrencySubtractEvent(BigDecimal.valueOf(event.getPrice()),
                                                                            event.getOwner().getUniqueId(),
                                                                            event.getSign().getWorld());
        ChestShop.callEvent(currencySubtractEvent);

        CurrencyAddEvent currencyAddEvent = new CurrencyAddEvent(BigDecimal.valueOf(event.getPrice()), event.getClient());
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.