learning plugin development

Discussion in 'Plugin Development' started by DaHamy, Mar 9, 2019.

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

    DaHamy

    So I'm learning how to make plugins for bukkit and am doing the basics learning from a youtube video.. But I got this issue that I can't import "JavaPlugins" so I thought I would just add it manually by just writing in the code but it gives errors

    upload_2019-3-9_15-27-4.png
     
  2. Offline

    timtower Administrator Administrator Moderator

    @DaHamy Did you add Bukkit to your build path?
     
  3. Offline

    DaHamy

    The building tools from jenkins? Yes I have added that jar file
     
  4. Offline

    timtower Administrator Administrator Moderator

    What jenkins?
     
  5. Offline

    DaHamy

    from bukkit jenkins you can download the latest buildtools, it's a jar file
    edit:sry for late responses
    edit2: sry mb it's from spigot and not bukkit
    edit3: where can i download the buildtools from bukkit? i run a bukkit server and prefer it over spiggot
     
    Last edited: Mar 9, 2019
  6. Offline

    timtower Administrator Administrator Moderator

    @DaHamy Late response: welcome to the internet where timezones and other priorities are a thing.
    It is the same Buildtools
     
    DaHamy likes this.
  7. Offline

    KarimAKL

    @DaHamy The jar file you added was called "(bukkit or spigot)-(minecraft version)" by default, correct?
     
  8. Offline

    Dai_Kunai

    Yeah you can always just go to <Edit by Moderator: Redacted DMCA breaking url> and pick out the version you want; I usually go with spigot over craftbukkit.

    Afterwards in eclipse, right click your project and click on add external archives or build path, and find the spigot(version).jar or craftbukkit(version).jar. Once its added (quick tip for eclipse), you can click CTRL-SHIFT-O to auto import (assuming you typed it all in). Once that is done, it will automatically import org.bukkit.JavaPlugin.

    Good luck! :D
     
Thread Status:
Not open for further replies.

Share This Page