org.bukkit.java.javaplugin

Discussion in 'Plugin Development' started by ZadeFear, Jan 19, 2019.

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

    ZadeFear

    Hey, i'm trying to learn how to make plugins for minecraft 1.8. I am ahving this issue, pretty much when i tgypw this into my main class, (import org.bukkit.Java.JavaPlugin{) It gives me the squiggly red line. The error message says this 'The import import org.bukkit.Java.JavaPlugin cannot be resolved' It also says 'Syntax error on tokens, classheader expected instead. I have added the 1.8.8 (snapshot) external jar and the buildtools. I dont know why this is happening. Please help, thanks

    If you need more information, please let me know.
     
    Last edited by a moderator: Jan 20, 2019
  2. Could you post a screenshot of your entire class?
     
  3. Offline

    KarimAKL

    @ZadeFear I'm pretty sure the import is 'org.bukkit.plugin.java.JavaPlugin' not 'org.bukkit.Java.JavaPlugin'
     
    DerDonut likes this.
  4. Oh Yeah I totally missed this. Also depending on your IDE there are functions to auto import the classes you need so you don't have to type them manually
     
  5. Offline

    KarimAKL

    For Eclipse it's CTRL + SHIFT + O
    Note: O as in organize, not zero.
     
Thread Status:
Not open for further replies.

Share This Page