Code Monkey home page Code Monkey logo

all-spigot-nms's Introduction

All Spigot NMS

This is a tool I created to create a single jar file that contains all of spigot NMS versions, for easy import while creating a plugin that needs to support multiple versions of the Minecraft server libraries.

Important

Since version 1.17.1 Spigot changed the layout and obfucation mapping method, so this tool only compiles from version 1.8 to 1.17. If you need support for version 1.18 and above please check out tekanaka.
I will try to find a way to include everything but nothing is promised.

Usage

NOTE: This tool uses the jar command. It uses the JAVA_HOME or $PATH environmental variable to find the command. If you dont have that variable set, go to your JDK folder and copy the path then on your terminal run:

Set JDK to $PATH

echo 'export PATH="{JDK_PATH}/bin:$PATH"' >> ~/.zshrc

~/.zshrc is your shell profile file

Set JDK to $JAVA_HOME

set JAVA_HOME="{JDK_PATH}"

Compilation:

  • Download or clone this repository:
git clone https://github.com/Jacxk/all-spigot-nms
  • To compile the Jar file is as easy as runing the run.sh script and select one of options.

    Options:

    If no flags are found while executing the script an interactive menu will appear. Available flags are: -d | -e | -c | -a

    • Download -d - Downloads all the spigot jar files.

    • Extract -e - Extracts all the needed files from the downloaded files for compilation.

    • Compile -c - Compiles the Jar file from the extracted files.

    • All the above -a - Does all the above sequentially.

    • Exit - Closes everything and exits of course.

      Use the arrows and enter key to navigate through the menu.

    Extra Flags:

    • -t - Tests that the tool works as expected and everything is included on the out jar file.
    • -k - Removes title printout
    • -x - Disables verbose out put. Only important info will be displayed.

Build Test

Importing

Maven:

<dependency>
    <groupId>local.spigot.nms</groupId>
    <artifactId>AllSpigotNMS</artifactId>
    <version>LATEST</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/PATH TO FILE HERE</systemPath>
</dependency>

Gradle:

dependencies {
    implementation(files("/path/to/file.jar"))
}

You can now install it using the github package

I'm not distributing anything, please don't sue me Mojang.

Spigot NMS and Minecraft Versions:

NMS Versions with its latest minecraft version.

Each version as a link to its download.

Version R1 R2 R3
1.8 1.8 1.8.3 1.8.8
1.9 1.9.2 1.9.4
1.10 1.10.2
1.11 1.11.2
1.12 1.12
1.13 1.13 1.13.2
1.14 1.14.4
1.15 1.15.2
1.16 1.16.1 1.16.3 1.16.5
1.17 1.17.1
1.18 1.18.1 1.18.2
1.19 1.19.2 1.19.3 1.19.4
1.20 1.20.1 1.20.2 1.20.4

all-spigot-nms's People

Contributors

dmaax avatar jacxk avatar kevinnovak avatar obcbo avatar sean1472 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

all-spigot-nms's Issues

1.17.1 Acces Download

Hello I think getbukkit is changing they direct link for spigot 1.17.1 , because using the link https://cdn.getbukkit.org/ is RESTRICTED

Hi

hi buddy, wanna work together (I haven't found anyway to contact you lol so I need to create an issue)

Error when running extract.sh

Extracting all spigot.jar files, please wait...
Currently extracting ../spigot_versions/spigot-1.10.2-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.11.2.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.12.2.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.13.2.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.13.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.14.4.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.15.2.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.16.1.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.16.3.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.16.5.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.17.1.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.18.1.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.8-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.8.3-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.8.8-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.9.2-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Currently extracting ../spigot_versions/spigot-1.9.4-R0.1-SNAPSHOT-latest.jar...
./extract.sh: line 26: jar: command not found
./extract.sh: line 27: jar: command not found
./extract.sh: line 28: jar: command not found
Extraction completed!

This is what's firing after I download the jar files.

Out of Date

Hello there, can you please update this for 1_18_R1, 1_18_R2, and 1_19_R1?

Thank you ❤️

1.17 support

Would it be possible to add 1.17 support to this script?

Contact

Hey mate, this project looks awesome, thanks for your time!

Could you please send me your discord ID or add me on discord (Serra#8975)? I have a question about this new NMS system mojang added since 1.17 and I really want to avoid this modules stuff.

Thanks so much!

Command starts from the beginning

circles each command through - never ends, even if reached just fine the end.

  • Download
  • Extract
  • Compile
    … until you terminate it.

Example:

Running Compile...
Creating all-spigot-nms.jar
File created at: extracted_files/all-spigot-nms.jar
Detected OS: Linux. Using jar
What do would you like to do today? (Use arrow keys to move, and Enter to select)

Running Compile...
Creating all-spigot-nms.jar
File created at: extracted_files/all-spigot-nms.jar
Detected OS: Linux. Using jar
What do would you like to do today? (Use arrow keys to move, and Enter to select)

Running Compile...
Creating all-spigot-nms.jar
^CFile created at: extracted_files/all-spigot-nms.jar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.