βοΈAPI
Mining Economy's API Download, information and example usage.
Example Usages:
MiningEconomy miningEconomy = (MiningEconomy) JavaPlugin.getProvidingPlugin(MiningEconomy.class);
miningEconomy.setMine(location, mineType); @EventHandler
public void onCoinTransfer(CoinEvent event) {
final CommandSender giver = event.getGiver();
if (!event.getType().equals(CoinEvent.Types.SET) || giver.hasPermission("example.permission")) return;
event.setCancelled(true);
giver.sendMessage(ChatColor.translateAlternateColorCodes('&', "&cInsufficient Permission."));
}Last updated