http://dev.bukkit.org/server-mods/vault/#w-linking-vault EDIT: If you need more detailed instructions, be specific.
I believe that major responsibility for this falls to your "inability to understand" than lacking example. If you are familiar with java, it should definitely make some sense.
Here is what i use to hook into Vault, never had a problem. Add this class to your project. Code:java package your.package.here; import net.milkbowl.vault.chat.Chat;import net.milkbowl.vault.economy.Economy;import net.milkbowl.vault.permission.Permission; import org.bukkit.Bukkit;import org.bukkit.Server;import org.bukkit.plugin.RegisteredServiceProvider; public class VaultAdapter {private static final String VAULT = "Vault";//economyprivate static Economy ecoVault = null;private static Permission permVault = null;private static Chat chatVault = null;private static boolean vaultLoaded = false; public static Economy getEconomy(){if(!vaultLoaded){vaultLoaded = true;Server theServer = Bukkit.getServer();if (theServer.getPluginManager().getPlugin(VAULT) != null){RegisteredServiceProvider<Economy> rsp = theServer.getServicesManager().getRegistration(Economy.class);if(rsp!=null){ecoVault = rsp.getProvider();}}} return ecoVault;} public static Permission getPermissions(){if(!vaultLoaded){vaultLoaded = true;Server theServer = Bukkit.getServer();if (theServer.getPluginManager().getPlugin(VAULT) != null){RegisteredServiceProvider<Permission> rsp = theServer.getServicesManager().getRegistration(Permission.class);if(rsp!=null){permVault = rsp.getProvider();}}} return permVault;} public static Chat getChat(){if(!vaultLoaded){vaultLoaded = true;Server theServer = Bukkit.getServer();if (theServer.getPluginManager().getPlugin(VAULT) != null){RegisteredServiceProvider<Chat> rsp = theServer.getServicesManager().getRegistration(Chat.class);if(rsp!=null){chatVault = rsp.getProvider();}}} return chatVault;} } Now on your main class or the class that your using to send people money etc. do this under where you have "extends javaplugin" do this Code:java public class Main extends JavaPlugin implements Listener{ public static Economy econ = null; Then on your onCommand or whever your actually sending money, do something like this. Code: Economy econ = VaultAdapter.getEconomy(); Then to send a player money do this. Code: econ.depositPlayer(NAME, AMOUNT);
ImDeJay aww, you ruined the fun But yes, that's the way to do it. I really don't see how the OP is like 'I dun getz itz gimme codeh'.
Thank ImDeJay and i agree with Lolmewn but i love your help thanks I need to know about GIT idk how it work any good tuts out there? DURP i put that code in my main class EPIC FAIL Plugin working well it a plugin that gives money to the killer and remove it form the person who died EDIT by Moderator: merged posts, please use the edit button instead of double posting.