An expanded plugin library which allows more effective and rapid plugin development.
Latest version: 2.3.1
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.
https://github.com/Negative-Games/Framework/wiki
https://framework.docs.negative.games/
We use the MIT licence for this project. Please read it here.
If you would like to help us gather statistical & usage data for Framework via Metrics, please add the following in your onEnable()
method:
enableFrameworkUsageTracking()
<repository>
<id>negative-games</id>
<url>https://repo.negative.games/repository/negative-games/</url>
</repository>
<dependency>
<groupId>games.negative.framework</groupId>
<artifactId>Framework</artifactId>
<version>{VERSION}</version>
<scope>compile</scope>
</dependency>
Add this to your build configuration for this to work correctly.
<configuration>
<relocations>
<relocation>
<pattern>games.negative.framework</pattern>
<shadedPattern>{YOUR PACKAGE NAME}</shadedPattern>
</relocation>
</relocations>
</configuration>
An example would be:
<configuration>
<relocations>
<relocation>
<pattern>games.negative.framework</pattern>
<shadedPattern>me.name.myplugin.framework</shadedPattern>
</relocation>
</relocations>
</configuration>
To view an example in a full pom, head to this link.
repositories {
mavenCentral()
maven { url 'https://repo.negative.games/repository/negative-games/' }
}
dependencies {
implementation 'games.negative.framework:Framework:{VERSION}'
}
To mask the dependency, add this to your plugins section
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.1.2"
}
And then make a shadowJar section and put the following
shadowJar {
archiveBaseName.set("${id}-${version}")
archiveClassifier.set("")
archiveVersion.set("")
relocate "games.negative.framework", "${group}.libs.plugin"
}
If you are wondering what ${group}
and ${id}
are, it is this:
def id = "MyPlugin" // Replace with the plugin name
def group = 'games.negative' // Replace with your group id
def version = '1.0-SNAPSHOT' // Replace with the version
For support, join https://discord.negative.games, create an issue card or email us at [email protected].
If you have any feedback, please reach out to us at https://discord.negative.games