✅ [API] Player NPC ✅  [1.17 - 1.20.1] icon

✅ [API] Player NPC ✅ [1.17 - 1.20.1] -----

Player NPC Lib via packets API for 1.17, 1.18, 1.19 & 1.20



✅ [API] Player NPC ✅ 2023.4 update
PlayerNPC 2023.4 version

Before updating your plugin, check if all dependencies are updated with this version.

CAUTION! If your plugin uses API, you must rebuild the entire project due to a change on methods, now returning Updatable object, instead of void. If you don't rebuild, it will throw NoSuchMethodException.


New features!
  • Added support for Spigot 1.19.4
  • New Updatable system for NPCs. Now you can change any NPC attribute and update it with npc.set{Attribute}().update(); Or you can update every pending update with npc.update();. If method do not return anything but void, you will not need update to send it to client.
    • Previous method called npc.update(); is now called npc.simpleUpdate();
  • New NameTag, you will be able to set the entity name (with preffix and suffix), and can be show above player. It's recommended to use hologram text instead of nametag.
    • Each Prefix, Name, Suffix can have 16 characters lenght.
    • It's recommended to not use color codes on Name, but can be used on Suffix and Preffix.
  • Added new TabList visibility options:
    • You can set TabList Name with no restrictions. (Can have infinite characters, and colors).
    • New TabList visibilities:
      • NEVER (Only will appear a few ticks after spawning on client, but it can be never shown setting ticks to 0, on 1.19.3+ clients).
      • NEAR (When NPC is shown on client, this was actual showOnTabList as true)
      • SAME_WORLD (When player is at the same world as NPC)
      • ALWAYS (NPC will appear on tablist always)
  • Now on some methods that used to return Nullable objects, it will return Optional<Object>. Methods now will be called "grab" instead of "get".
    • On NPC management: NPCLib.getInstance().getGlobalNPC(id) -> grabGlobalNPC(id)
    • On NPC Custom Data: npc.getCustomData(id) -grabCustomData(id);
    • On Skin Fetch Results: fetchResult.getSkin() -> grabSkin();
  • Added npc.getEyeLocation();
Bug fixes
  • Fixed scoreboard error while using proxy. To solve that, you need to enable "useBukkitScoreboards" at /plugins/PlayerNPC/config.yml
  • Now NPCs will be shown without FOV restrictions on 1.19.3+ clients, due to a Minecraft bugfix with skin load on clients.
  • Fixed Preview of Custom Skins
----------, Mar 19, 2023
Resource Information
Author:
----------
Total Downloads: 63,698
First Release: Jun 25, 2021
Last Update: Jun 15, 2023
Category: ---------------
All-Time Rating:
42 ratings
Find more info at sergiferry.github.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings