ive just like the this example: https://github.com/MilkBowl/VaultEx...c/com/vault/example/plugin/ExamplePlugin.java and doenst work.... Code: Code: public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { if(!(sender instanceof Player)) { log.info("Only players are supported for this Example Plugin, but you should not do this!!!"); return true; } Player player = (Player) sender; if(command.getLabel().equals("test-economy")) { // Lets give the player 1.05 currency (note that SOME economic plugins require rounding! sender.sendMessage(String.format("You have %s", vault.getEconomy().format(vault.getEconomy().getBalance(player.getName()).amount))); EconomyResponse r = vault.getEconomy().depositPlayer(player.getName(), 1.05); if(r.transactionSuccess()) { sender.sendMessage(String.format("You were given %s and now have %s", vault.getEconomy().format(r.amount), vault.getEconomy().format(r.balance))); } else { sender.sendMessage(String.format("An error occured: %s", r.errorMessage)); } return true; } else if(command.getLabel().equals("test-permission")) { // Lets test if user has the node "example.plugin.awesome" to determine if they are awesome or just suck if(vault.getPermission().hasPermission(player, "example.plugin.awesome", false)) { sender.sendMessage("You are awesome!"); } else { sender.sendMessage("You suck!"); } return true; } else { return false; } } All the .getEconomy have an error and it says The method getEconomy() is undefined for the type Vault why.....
the example plugin is a year old and has not been updated. Please see the main overview page on dev.bukkit.org