For v1.4 (#10) (added support for 1.7.10).

This commit is contained in:
Jitse Boonstra 2019-02-15 20:18:00 +01:00
parent 06cec6c0bf
commit d018b8d97b
19 changed files with 25 additions and 25 deletions

View File

@ -4,6 +4,8 @@ cache:
- $HOME/.m2/
install:
- wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- wget http://central.maven.org/maven2/io/netty/netty-all/4.1.33.Final/netty-all-4.1.33.Final.jar
mvn install:install-file -Dfile=netty-all-4.1.33.Final.jar -DgroupId=io.netty -DartifactId=netty-all -Dversion=4.1.33.Final -Dpackaging=jar
- wget https://github.com/Sarabveer/CraftBukkit-Spigot-Binary/blob/master/spigot-1.7.10-R0.1/spigot-1.7.10-R0.1-1649.jar
- mvn install:install-file -Dfile=spigot-1.7.10-R0.1-1649.jar -DgroupId=org.spigotmc -DartifactId=spigot -Dversion=1.7.10-R0.1-SNAPSHOT -Dpackaging=jar
- ls $HOME/.m2/repository/org/spigotmc/spigot/1.8-R0.1-SNAPSHOT >> /dev/null 2>&1 || java -jar BuildTools.jar --rev 1.8 >> /dev/null 2>&1

View File

@ -3,12 +3,12 @@ NPCLib Basic non-player character library.<br>
[![Release](https://jitpack.io/v/JitseB/NPCLib.svg)](https://github.com/JitseB/NPCLib/releases)
[![Build Status](https://travis-ci.com/JitseB/NPCLib.svg?branch=master)](https://travis-ci.com/JitseB/NPCLib)
[![JDK](https://img.shields.io/badge/Using-Java%208-blue.svg)](http://jdk.java.net/8/)
[![Versions](https://img.shields.io/badge/MC-1.8%20--%201.13.2-blue.svg)](https://github.com/JitseB/NPCLib/releases)
[![Versions](https://img.shields.io/badge/MC-1.7.10%20--%201.13.2-blue.svg)](https://github.com/JitseB/NPCLib/releases)
[![Thread](https://img.shields.io/badge/SpigotMC-Resource-orange.svg)](https://www.spigotmc.org/resources/npclib.55884/)
[![Thread](https://img.shields.io/badge/SpigotMC-Thread-orange.svg)](https://www.spigotmc.org/threads/npclib--basic-non-player-character-library.314460/)
=
This is an API made specifically for spigot servers (Minecraft). Current supported versions: **1.8 - 1.13.2**. Lightweight replacement for Citizens. NPCLib only uses packets instead of registering the entity in the actual Minecraft server.
This is an API made specifically for spigot servers (Minecraft). Current supported versions: **1.7.10 - 1.13.2**. 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](http://img.youtube.com/vi/LqwdqIxPIvE/0.jpg)](http://www.youtube.com/watch?v=LqwdqIxPIvE "NPCLib Basic non-player character library (Minecraft).")
@ -23,9 +23,11 @@ Alternatively, you can help the project by starring the repository or telling ot
- :heavy_check_mark: Spawn and destroy NPC (version 1.8 - latest).
- :heavy_check_mark: Autohide NPC when out of range.
- :heavy_check_mark: Add support for 1.7.10 (1.7 R4).
- :construction: Option to rotate head to player (when nearby).
- :construction: Add support for 1.7.10 (1.7 R4).
- :construction: Add support for animated text (update-able holograms).
- :x: Give NPC armor and items in hand.
- :x: Multi-line text support for 1.7.10 (1.7 R4).
### Roadmad Legend
:heavy_check_mark: Feature is fully implemented and functional. <br>
@ -51,6 +53,7 @@ Alternatively, you can put `npclib-plugin-v*.jar` under your `plugins` folder. B
```Java
// Creating a new NPC instance.
// MC 1.7.10 (1.7 R4) only supports single-line text.
NPC npc = lib.createNPC(skin, lines);
// Then let the library generate the necessary packets.

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-api</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-commons</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_10_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_11_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_12_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_13_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_13_R2</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_7_R4</artifactId>
@ -25,11 +25,5 @@
<version>2.8.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.0.23.Final</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@ -36,6 +36,7 @@ public class NPC_v1_7_R4 extends NPC {
public NPC_v1_7_R4(JavaPlugin plugin, Skin skin, double autoHideDistance, List<String> lines) {
super(plugin, skin, autoHideDistance, lines);
// TODO: Add multi-line text support.
this.name = lines.get(0);
}

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_8_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_8_R2</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_8_R3</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_9_R1</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib-nms</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-nms-v1_9_R2</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>net.jitse</groupId>
<artifactId>npclib</artifactId>
<version>1.3</version>
<version>1.4</version>
</parent>
<artifactId>npclib-plugin</artifactId>

View File

@ -8,7 +8,7 @@
<groupId>net.jitse</groupId>
<artifactId>npclib</artifactId>
<version>1.3</version>
<version>1.4</version>
<name>NPCLib</name>
<url>https://github.com/JitseB/NPCLib</url>