The custom craft

Discussion in 'Plugin Development' started by ironchan02, Apr 27, 2015.

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

    ironchan02

    I want to make a custom craft myself.
    But I have some problem,I am first time to make a plugin,beause no people want make to me.
    I have some problem
    The craftitem(craftitemevent)
    This reason is write after public void?
     
  2. @ironchan02 What? Please try to explain, use better grammar, or if you speak another language, use a translator.
     
  3. Offline

    ironchan02

  4. Offline

    mythbusterma

  5. Offline

    Reynergodoy

    i think you need to do @EventHandler
    and than your code
     
  6. Offline

    bohafr

    class Name implements Listener {

    @EventHandler
    public void craftItem(CraftItemEvent e){
    //Code, to do..
    }

    }

    This is code for your class, you have to have implemented Listener, eventhandler before event and no use (CraftItemEvent), but (CraftItemEvent e)..
    In onEnable you have to add Bukkit.getPluginManager().registerEvents(new Name(), this);

    I described all of how to make listener for events to you, because I dont know, what you know.
     
Thread Status:
Not open for further replies.

Share This Page