Error

Discussion in 'Plugin Development' started by CookieCoder, Jun 30, 2014.

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

    CookieCoder

    I have this code:
    Code:
        @EventHandler
        public void onBlockBreak(BlockBreakEvent e) {


    but @ EventHandler has an error and when I mouse out there like fix project setup someone has a solution?
     
  2. Offline

    fefe2008

    CookieCoder Are you using CraftBukkit.jar as external archieve in your Build Path?
     
  3. Offline

    CookieCoder

    Yes and i have the plugin manager:
    Code:
        public void onEnable() {
            PluginManager pm = getServer().getPluginManager();
            pm.registerEvents(this, this);
        }
    And i have craftbukkit 1.7.9 DEV
    rio2 have the same error
     
  4. Offline

    mazentheamazin

  5. Offline

    CookieCoder

    I can not import this is the first thing he indicates. Normally I never had another PC, I also can not send someone a link to a craftbukkit?
     
  6. Offline

    CookieCoder

    Any one?
     
  7. Offline

    CookieCoder

  8. Offline

    michael566

    CookieCoder Does your class that you have that it in implement Listener?
     
    SimplyCode and bwfcwalshy like this.
  9. Offline

    SimplyCode

    Copy this into your imports at the top.

    Code:java
    1. import org.bukkit.event.EventHandler;
     
  10. Offline

    CookieCoder

    Yes its have a implements Listener i go try SimplyCode
     
Thread Status:
Not open for further replies.

Share This Page