Skip to content

PlayerNPC API 2022.6 version

Compare
Choose a tag to compare
@SergiFerry SergiFerry released this 21 Jul 22:30
· 2 commits to master since this release
e72eb2d

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 :)