techzonemc / npclib Goto Github PK
View Code? Open in Web Editor NEWLibrary that allows spawning of NPCs with either citizens or through nms
License: MIT License
Library that allows spawning of NPCs with either citizens or through nms
License: MIT License
Getting this error when I try to spawn an NPC with a skin http://pastebin.com/RyZyFbd2. Using NPCLib 1.1.1-SNAPSHOT and this(http://i.teg.pw/h6n6o.png) Spigot version. The NPC spawns just fine if I don't try to set a skin.
Getting the same error using this(http://i.teg.pw/ig2e8.png) version of Spigot as well.
The body of an NPC doesn't change based of the yaw of the location/head which results in this:
Also after what seems to be a random out of time, the head and body turns to the correct pitch and yaw what was set intentionally. Though this only happens when I teleport the NPC to the location I spawn it, right after I spawn it
Full StackTrace:
http://pastebin.com/g0xFYSTQ
Code:
http://pastebin.com/SMT515G8
(ZAF.java:62 is: npc.setSkin("Legostarwarszach");)
Update NMS implementation to Spigot 1.8 while still supporting 1.7.10
isSupported() returns false even if npclib exists.
As there is a NoSuchFieldException when initializing the non-existent name field.
I was wondering if there was a way to move the NPCs to other locations, as I did not see anything in the NPC interface.
Make Citizens2 optional in NPCLib.
Needed in Combat-Tag to fix issue Techcable/Combat-Tag#4
Anytime I attempt to call setName, it errors out with this error. I've made sure none of the names or anything are null and can show the code if you would like.
java.lang.NullPointerException
at net.techcable.npclib.nms.NMSLivingNPC.setName(NMSLivingNPC.java:29) ~[?:?]
at com.reactivemc.hub.listeners.NPCListener.spawnNPC(NPCListener.java:55) ~[?:?]
I'm running Spigot 1.7/1.8 protocal hack on the latest version of NPCLib.
The server is in online mode and real players who log in get their skins.
Using NPCLib version 2.0.0-beta2-SNAPSHOT
Code used to spawn NPC: (almost identical to example provided)
NPCRegistry registry = NPCLib.getNPCRegistry("awesome-registry", instance);
HumanNPC npc = registry.createHumanNPC("jack");
npc.setName("greeter");
npc.setProtected(true); //Makes invincible
npc.setSkin(UUID.fromString("613517d7-31bb-47bd-bc33-7870d4f3adc5")); //Gives the npc my troll skin
npc.spawn(player.getLocation()); //Spawns at server spawn
There was one time where it actually worked, but hasn't worked since then.
The entity is invisible when you spawn a living NPC.
Hey! I'm using the newest versions of both AntiAura and NPCLib, this happens every time a player first starts moving on the server :/ (Running the latest 1.8.6 Spigot)
[22:57:32] [Server thread/ERROR]: Could not pass event PlayerMoveEvent to AntiAura v5.05
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:269) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:126) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:57) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_67]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_67]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:60) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_67]
Caused by: java.lang.NoClassDefFoundError: de/inventivegames/npc/NPCLib
at a.j.f(PacketStuff.java:39) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
... 15 more
Caused by: java.lang.ClassNotFoundException: de.inventivegames.npc.NPCLib
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_67]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_67]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_67]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_67]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_67]
at a.j.f(PacketStuff.java:39) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.6-latest.jar:git-Spigot-6a6b839-b0e81a4]
... 15 more
Issue:
#walkTo(Location)
(It happens some times, but not every time)
Code (Text):
[18:45:14 WARN]: [SimplePractice] Task #80 for SimplePractice v0.1 generated an exception
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) ~[?:1.8.0_131]
at java.util.HashMap$KeyIterator.next(HashMap.java:1461) ~[?:1.8.0_131]
at net.techcable.npclib.ai.AIEnvironment.tick(AIEnvironment.java:18) ~[?:?]
at net.techcable.npclib.nms.ai.NMSAIEnvironment.access$000(NMSAIEnvironment.java:8) ~[?:?]
at net.techcable.npclib.nms.ai.NMSAIEnvironment$1.run(NMSAIEnvironment.java:20) ~[?:?]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.