PlayerNPC API 2022.6 version
PlayerNPC API 2022.6 version
Before updating your plugin, check if all dependencies are updated with this version.
New features!
- Added support for Spigot 1.18.x - 1.19
- Added Persistent NPCs
- Added /npclib command
Code changes:
- When your plugin enables you MUST do NPCLib.getInstance().registerPlugin(plugin);
- Added NPCLib.getInstance().getPluginManager(plugin).setSkinUpdateFrequency(new NPCLib.SkinUpdateFrequency(Integer, TimeUnit));
- Changed FollowLookType to GazeTrackingType
- Changed npc.setFollowLookType() to npc.setGazeTrackingType();
- Changed NPCLib.getInstance().setUpdateGazeType(UpdateGazeType) to NPCLib.getInstance(),getPluginManager(plugin).setUpdateGazeType(UpdateGazeType);
- Changed NPCLib.getInstance().setUpdateGazeTicks(ticks) to NPCLib.getInstance(),getPluginManager(plugin).setUpdateGazeTicks(ticks);
- Changed NPCLib.getInstance().setTicksUntilTabListHide(ticks) to NPCLib.getInstance(),getPluginManager(plugin).setTicksUntilTabListHide(ticks);
I hope you enjoy this new update, and leave feedback. Thank you for using PlayerNPC API :)