All Projects → MinecraftLibraries → Npclib

MinecraftLibraries / Npclib

Licence: mit
(Minecraft) NPCLib – Basic non-player character library.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Npclib

Paperlib
Plugin Library for interfacing with Paper Specific API's with graceful fallback that maintains Spigot Compatibility, such as Async Chunk Loading.
Stars: ✭ 108 (+10.2%)
Mutual labels:  minecraft, spigot, library
Xseries
Library for cross-version Minecraft Bukkit support and various efficient API methods.
Stars: ✭ 109 (+11.22%)
Mutual labels:  minecraft, spigot, library
Item Nbt Api
Add custom NBT tags to Items/Tiles/Entities without NMS!
Stars: ✭ 163 (+66.33%)
Mutual labels:  minecraft, spigot, library
Shopchest
ShopChest - Spigot/Bukkit Plugin
Stars: ✭ 38 (-61.22%)
Mutual labels:  minecraft, spigot
Unifiedmetrics
Fully-featured metrics collection agent for Minecraft servers. Supports Prometheus and InfluxDB. Dashboard included out-of-box.
Stars: ✭ 29 (-70.41%)
Mutual labels:  minecraft, spigot
Essentials
The essential plugin suite for Minecraft servers.
Stars: ✭ 957 (+876.53%)
Mutual labels:  minecraft, spigot
Antilaby
AntiLaby plug-in for Bukkit
Stars: ✭ 6 (-93.88%)
Mutual labels:  minecraft, spigot
Redprotect
RedProtect Easy and Light Weight Antigrief plugin.
Stars: ✭ 51 (-47.96%)
Mutual labels:  minecraft, spigot
Gadgetsmenu
Feature-rich cosmetics plugin that provide players with the most powerful features.
Stars: ✭ 40 (-59.18%)
Mutual labels:  minecraft, spigot
Luckperms
A permissions plugin for Minecraft servers.
Stars: ✭ 1,100 (+1022.45%)
Mutual labels:  minecraft, spigot
Chestcommands
An intuitive and powerful plugin to create graphical user interfaces in Minecraft.
Stars: ✭ 62 (-36.73%)
Mutual labels:  minecraft, spigot
Blur
Minecraft Game Engine written in Java & Kotlin
Stars: ✭ 21 (-78.57%)
Mutual labels:  minecraft, spigot
Transport Pipes
Buildcraft without mods!
Stars: ✭ 21 (-78.57%)
Mutual labels:  minecraft, spigot
Libby
A runtime dependency management library for plugins running in Java-based Minecraft server platforms.
Stars: ✭ 36 (-63.27%)
Mutual labels:  minecraft, spigot
Confiscate
Discover duplication glitches, abusive staff giving items, x-ray or simply poor server economy.
Stars: ✭ 23 (-76.53%)
Mutual labels:  minecraft, spigot
Skinsrestorer
Spigot plugin that provides player skin management. Supports offline mode servers.
Stars: ✭ 45 (-54.08%)
Mutual labels:  minecraft, spigot
Fastboard
Simple Bukkit scoreboard API with 1.7.10 to 1.16 support.
Stars: ✭ 62 (-36.73%)
Mutual labels:  minecraft, spigot
Guilds
Adding RPG to your server has never been more fun and action-packed!
Stars: ✭ 66 (-32.65%)
Mutual labels:  minecraft, spigot
Plugman
Plugin manager for Bukkit servers.
Stars: ✭ 80 (-18.37%)
Mutual labels:  minecraft, spigot
Pycraft
Minecraft-client networking library in Python
Stars: ✭ 574 (+485.71%)
Mutual labels:  minecraft, library

Banner NPCLib – Basic non-player character library.
Release Build Status Versions Resource Discord

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.

Preview (click to play video)

YouTube Video

Donate

PayPal

Alternatively, you can help the project by starring the repository or telling others about NPCLib. 😄

Developers

Usage

There are multiple ways you can make use of NPCLib.

  1. The first option is to shade npclib-plugin.jar in to your plugin.
  2. The second option is to put 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!
  3. The third option (and the one I recommend most) is to shade the library using Maven. I recently added NPCLib to the OSSRH (OSS Repository Hosting) which allows you to easily import NPCLib into your project.

Maven repository

<repositories>
    <repository>
        <id>ossrh</id>
        <url>https://oss.sonatype.org/content/groups/public/</url>
    </repository>
</repositories>

Maven dependency

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.9-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.

Repacking the library

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>

Tutorial

Click here for an elaborate explanation on how to use NPCLib in your next project.

Versioning

For NPCLib I use the follow versioning system:

  • 1.x.x: Where the 1 indicates the major version of the library. When this number changes, it's highly likely there're big API changes.
  • x.1.x: Where the 1 indicates the minor version of the library. When this number changes, a feature is added or a high priority bug is fixed.
  • x.x.1: Where the 1 indicates another minor version of the library. When this number changes, a small bug has been fixed.

Building your own version

  1. Download or clone this repository.
  2. You can build the project using 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/.

License

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.

Acknowledgement

I thank all those who have contributed to NPCLib over the course of its development.

Please view other credits here.

Copyright

Copyright (c) Jitse Boonstra 2018 All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].