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.NovaFox161:NovaGamesLib-Bukkit:Beta-0.0.4'
}
dependencies {
implementation("com.github.NovaFox161:NovaGamesLib-Bukkit:Beta-0.0.4")
}
<dependency>
<groupId>com.github.NovaFox161</groupId>
<artifactId>NovaGamesLib-Bukkit</artifactId>
<version>Beta-0.0.4</version>
</dependency>
libraryDependencies += "com.github.NovaFox161" % "NovaGamesLib-Bukkit" % "Beta-0.0.4"
:dependencies [[com.github.NovaFox161/NovaGamesLib-Bukkit "Beta-0.0.4"]]
NovaGamesLib (Bukkit) is a version of the NovaGamesLib plugin which serves as a robust API for minigames on Bukkit and Spigot minecraft servers.
This plugin offers an extensive API and library for Bukkit minigame plugins. NGL handles all of the hard work involved in minigame coding, no longer do you need to spend months on end trying to code a minigame. NGL is designed to be used in any kind of minigame.
NGL is completely modular too! Don't want to use something? No problem, just don't hook into it!
Looking for NovaGamesLib for Bungee Servers? Don't worry! It's in development!
NovaGamesLib will handle all stats tracking by default if a database is set up reducing your workload.
NGL handles all stats tracking internally! That means that you need not worry about it!!
With integrated stats tracking, NGL can provide and in depth look into how players perform in a minigame. NGL will also allow the lookup of these stats so that your plugin can display in game or, if desired, within a website. <br> <br> NGL currently tracks all of the following stats:
Should you find an issue with NovaGamesLib, please create a new issue in the Issues pages on this repository or via Dev Bukkit with a proper ticket.
Add your plugin below or send us a DM letting us know about your awesome new Minigame plugin that utilizes NovaGamesLib!
Implementing NGL is super simple! Directions on how to use it are provided below (currently only Maven is supported).
Import into pom.xml by inserting the following (where version is your target version):
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.NovaFox161</groupId>
<artifactId>NovaGamesLib-Bukkit</artifactId>
<version>VERSION</version>
</dependency>
In your main class, in #OnEnable
add this code (extra code shown for extra help):
public class Main extends JavaPlugin {
com.cloudcraftgaming.novagameslib.NovaGamesLib ngl = null;
public void onEnable() {
//Do stuff...
//Add this code:
com.cloudcraftgaming.novagameslib.NovaGamesLib novaGamesLib = plugin.getServer().getPluginManager().getPlugin("NovaGamesLib-Bukkit");
if (novaGamesLib != null) {
if (novaGamesLib.getDescription().getVersion().equals("TARGET VERSION")) {
ngl = novaGamesLib;
//Do stuff.
}
}
//Do stuff...
}
}
Example code, plugins, and more will soon be provided here.
mvn clean test
to make sure they passgit push origin master
Due to the way NovaGamesLib-Bukkit is built, the deprecation policy is as follows: