Drops in PvP

Discussion in 'Plugin Development' started by JoelyBob, Jul 11, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    JoelyBob

    Hello,

    I am making a plugin for a KitPvP server, and I wanted to make a plugin so that when a player is killed, they will drop nothing BUT 3 gold. I have done a small code but it doesn't seem to work, any help?

    Thanks
     
  2. Offline

    fireblast709

  3. Offline

    xAstraah

    JoelyBob, 1.) Material.GOLD_NUGGET is a golden nugget not a GOLD_INGOT. 2.) Add this into your code:
    Code:java
    1. public void onEnable() {
    2. Bukkit.getServer().getPluginManager().registerEvents(this, this);
    3. }
     
  4. Offline

    JoelyBob

    Yeah, I mean't gold nuggets :p Also, thanks!

    xAstraah
    When I implemented that code, it came up with an error on the registerEvents. It says:
    "The method registerEvents(Listener, Plugin) in the type PluginManager is not applicable for the arguments (PvPEarns, PvPEarns)"
    What do I do?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  5. Offline

    ReggieMOL

Thread Status:
Not open for further replies.

Share This Page