Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.SerenadeX:CraftBukkit:'
}
dependencies {
implementation("com.github.SerenadeX:CraftBukkit:")
}
<dependency>
<groupId>com.github.SerenadeX</groupId>
<artifactId>CraftBukkit</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.SerenadeX" % "CraftBukkit" % ""
:dependencies [[com.github.SerenadeX/CraftBukkit ""]]
An implementation of the Bukkit plugin API for Minecraft servers, currently maintained by SpigotMC.
The development team is very open to both bug and feature requests / suggestions. You can submit these on the JIRA Issue Tracker.
CraftBukkit is a Java program which uses Maven 3 for compilation. To compile fresh from Git, simply perform the following steps:
Some IDEs such as NetBeans can perform these steps for you. Any Maven capable Java IDE can be used to develop with CraftBukkit, however the current team's personal preference is to use NetBeans.
Contributions of all sorts are welcome. To manage community contributions, we use the pull request functionality of Stash. In to gain access to Stash and create a pull request, you will first need to perform the following steps:
Once you have performed these steps you can create a fork, push your code changes, and then submit it for review.
If you submit a PR involving both Bukkit and CraftBukkit, it's appreciated if each PR links the other. Additionally, every reference to an obfuscated field/method in NMS should be marked with // PAIL: Rename
and optionally a suggested name, to make mapping creation easier. E.g.:
entity.k.get(i).f(); // PAIL Rename pathfinders, navigateToHome
Also, make sure to include // Craftbukkit
comments to indicate modified NMS sources.