Little problem

Discussion in 'Plugin Development' started by CheifKeef, Jul 4, 2014.

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

    CheifKeef

  2. Offline

    Heirteir

    CheifKeef
    Just click on the lightbulb it's your friend
     
  3. Offline

    CheifKeef


    Heirteir I just clicked the light bulb and it said
    }
    }
    return false;
    }
    }

    i added the return false there and now it give me a X inside of a circle next to the command sender line
     
  4. Offline

    Heirteir

    CheifKeef
    Please go watch a tutorial on "How to use eclipse."
     
  5. Offline

    GeorgeeeHD

    CheifKeef just hover over "onCommand" then click add return statement or something like that
     
  6. Offline

    CheifKeef

    GeorgeeeHD it still gives me a little X in a circle
     
  7. Offline

    fefe2008

    CheifKeef That little X in a circle is commonly known as "Error", strange eehh?!
    And maybe you want to tell us what that little X in a circle is whispering in your ear , because we cant hear it.
     
  8. Offline

    CheifKeef

    fefe2008
    Multiple markers at this line
    - overrides
    org.bukkit.plugin.java.JavaPlugin.onCommand

    - This method must return a result of type boolean
     
  9. Offline

    fefe2008

    CheifKeef I think removing the else and the return true and then clicking add return statement should do it
     
  10. Offline

    CheifKeef

  11. Offline

    fefe2008

    CheifKeef Yes and now above the return false you add your other command without else which wouldn't have had to be deleted in the first place.
    And after that go watch some Java Tutorials or read the Javadocs. After that the Bukkit Api docs. Have fun.. HHIHHIH
     
    CheifKeef likes this.
Thread Status:
Not open for further replies.

Share This Page