|
2 years ago | |
---|---|---|
.github/ISSUE_TEMPLATE | 3 years ago | |
api | 2 years ago | |
examples | 3 years ago | |
nms | 2 years ago | |
plugin | 2 years ago | |
.gitignore | 4 years ago | |
.travis.yml | 2 years ago | |
CREDITS.md | 2 years ago | |
DOCUMENTATION.md | 2 years ago | |
LICENSE.md | 4 years ago | |
README.md | 2 years ago | |
pom.xml | 2 years ago | |
release.properties | 3 years ago |
This project is starting 5 Oct. 2020 no longer actively maintained. I Thank you all for riding along!
This is an API made specifically for spigot servers (Minecraft). Current supported versions: 1.8.8 - latest. Lightweight replacement for Citizens. NPCLib only uses packets instead of registering the entity in the actual Minecraft server.
Alternatively, you can help the project by starring the repository or telling others about NPCLib. 😄
There are multiple ways you can make use of NPCLib.
npclib-plugin.jar
in to your plugin.npclib-plugin.jar
under your plugins
folder. By doing this, you no longer need to shade the API JAR. Though, do not forget to add NPCLib
as a dependency in your plugin.yml
!<repositories>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>
If you have NPCLib under your plugins
folder, you may use the following:
<dependencies>
<dependency>
<groupId>net.jitse</groupId>
<artifactId>npclib-api</artifactId>
<version>2.11-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
If you do not want to have NPCLib in your plugins
folder, you need to use the npclib-plugin
artifact and shade it accordingly.
Click here to view the latest release.
To make sure the classes won't be twice at the same place. I recommend repacking the library into your package. (Otherwise issue #79 might occur.) You can do that as follow:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<!-- Do not include the <configuration>...</configuration> part if you are using Sponge! -->
<configuration>
<relocations>
<relocation>
<pattern>net.jitse.npclib</pattern>
<!-- Replace this with your package! -->
<shadedPattern>your.package</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Click here for an elaborate explanation on how to use NPCLib in your next project.
For NPCLib I use the follow versioning system:
mvn clean install
.The API JAR will be under /api/target/
and the plugin JAR (which includes all necessary NMS code) will be under /plugins/target/
.
NPCLib is licensed under the MIT license. Developers are free to use NPCLib for both private and commercial use. However, it would still be nice to acknowledge me.
I thank all those who have contributed to NPCLib over the course of its development.
Please view other credits here.
Copyright (c) Jitse Boonstra 2018 All rights reserved.