"Creating a blank Spigot plugin" out of date

Discussion in 'Spigot Plugin Development' started by jeanne123, Feb 14, 2019.

Thread Status:
Not open for further replies.
  1. Hello, newbie here, I started at https://www.spigotmc.org/wiki/spigot-plugin-development/ to learn how to create a spigot plugin. The first step is to "Creating a blank Spigot plugin", so I followed the instructions at: https://www.spigotmc.org/wiki/creating-a-blank-spigot-plugin-in-intellijidea/. In that page, it contains:

    " In the window which now is coming up you have to browse to your location where the SpigotAPI is stored."

    The URL to "SpigotAPI" is https://hub.spigotmc.org/nexus/cont...ot-api-1.13-R0.1-20180722.093907-4-shaded.jar. However, because its pointing to a specific version path, it may not exist a year from then. And that is the case here. It would be more helpful to have the URL point to https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api which contains all available API versions and will prevent broken links due to old builds that no longer exist.

    I notice that neither "nexus" or "spigotmc" exist at https://hub.spigotmc.org/stash/projects/SPIGOT, which is referenced in https://hub.spigotmc.org/, which leads me to believe that https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api may be deprecated.

    Last, at https://www.spigotmc.org/wiki/spigot-plugin-development/, The "Spigot API" link points to https://hub.spigotmc.org/stash/projects/SPIGOT, which contains multiple repositories and not one of them contains the word "API". Can someone help clarify where I can obtain the Spigot API? And could a maintainer update the various documents with the correct link to the API? Or perhaps just reference a single page that references the correct link? Thanks in advance!
     
  2. I discovered it. Its included in the "BuildTools.jar" suite. Mystery solved! Looks like those tutorial docs are really out of date!
     
  3. The long technically correct version is to build it with BuildTools from here. But it took me a while to learn how to actually do that, so I'll be nice and give you this -snip-.
     
  4. Those aren't recommended and sharing those links aren't allowed (I did it before and my whole comment was deleted lmao)
     
    #4 NetherGoblin, Feb 14, 2019
    Last edited by a moderator: Feb 14, 2019
  5. tf you talking bout? ( ͡° ͜ʖ ͡°)

    Edit: Just curious (I'm sure you're corret) but where does it say that in the rules?
     
    #5 MSWS, Feb 14, 2019
    Last edited: Feb 14, 2019
  6. Discussion or distribution of illegal content is not permitted in any form.
    1. This includes, but is not limited to pirated content and nulled licenses for paid software.
      1. In addition to this, the community will not support users of such software.
    2. It is not permitted to give or request advice of a legal nature on these forums. Such requests should be handled by a legal professional licensed to practice in your jurisdiction.
    Its not official content and counts as "pirated" is the only thing i can assume, like i was saying im just basing that off it happend to me when i linked to the said website (also happens when people link to other bad websites i cant mention the names of)
     
  7. Thanks for the info MSWS. After some more digging, the process is:

    1. Go to spigot's private maven repo "https://hub.spigotmc.org/nexus/content/repositories" and search for the version of spigot api.
    2. add "
      https://hub.spigotmc.org/nexus/content/repositories/releases/" and "
      https://hub.spigotmc.org/nexus/content/repositories/snapshots/
      " to your maven/gradle file's private maven repo's
    1. Add your dependency. gradle:
      'org.spigotmc:spigot-api:<version>'.
     
  8. All those links are hosted within the spigotmc.org domain, which is within the domain of this forum. I'd be hard-pressed to believe that spigot admins would want to detract potential new developers into the community. I mean, if the documentation is wrong, and a dev can't get the most basic of questions answered, how would the spigot community thrive beyond its initial members?
     
  9. electronicboy

    IRC Staff

    For an easy trick for IntelliJ users: Install the minecraft development plugin, it's designed to create a blank project which contains "just enough" to get you running, those wiki pages are created by members of the community and don't always present the proper or easiest way to do it, e.g. using maven/gradle
     
  10. Choco

    Choco Previously 2008Choco
    Junior Mod

    I've edited the 3 wiki pages that link directly to a Spigot API version to instead use the link identified in the OP. In the future, you may edit wiki pages yourself if you find a mistake. The edit button is in the top right of the wiki page.

    As for the mirror websites, those are illegally hosting server jar files. There's a reason SpigotMC does not just have a download button. BuildsTools is not to cause distress to server owners, it's to avoid legal issues in the case Mojang decides to enforce their EULA (specifically the distribution of the server jar). Using BuildTools will local install the Spigot and CraftBukkit servers as well as the Spigot and Bukkit APIs to your local maven repository so if you choose to use it as a build system, your dependencies are already prepared for you. Otherwise, the API may be downloaded from the Nexus and the server jar is obtainable from BuildTools as it has been for the past 4 years.

    Thread locked.
     
Thread Status:
Not open for further replies.

Share This Page