Java Errors

Discussion in 'Plugin Development' started by ArnauBG, Jun 29, 2018.

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

    ArnauBG

    Hi, I'm a noob in Java, and it's my first plugin.

    But I have some errors that I don't know what means.

    That errors are:

    Errors (open)

    error: <identifier> expected
    error: illegal start of type
    error: ')' expected
    error: ';' expected
    error: invalid method declaration; return type required
    error: <identifier> expected
    error: package event does not exist


    There's the .java file:
    Hubcraft.java

    All help will be apreciated.

    ArnauBG​
     
  2. Offline

    PhantomUnicorns

    What seems to be the major problem with your code is that inside your onCommand method, you have another method, onProjectileHit. Methods can only be created inside the class and not wrapped in another method like you have done so. First, taking out onProjectileHit from onCommand takes a step in the right direction.
     
  3. Offline

    RcExtract

    Do u have some issues with copying the code from ur ide to pastebin?
     
  4. Offline

    ArnauBG

    No. Why?
     
Thread Status:
Not open for further replies.

Share This Page