I created an NPC via the Citizens API and assigned it a name. On my Dev-Server (Paper 1.19.4) the NPC and name work without problems. But on the Main-Server (Paper 1.19.4) the Name is not shown. I have tried to use /npc name to toggle the name and it did not work.
This is the code to create the NPC
selectionNPC = CitizensAPI.getNPCRegistry().createNPC(EntityType.PLAYER, "§6Parkour-Auswahl §7(Rechtsklick)");
plugin.getData().setSelectionNPCUUID(selectionNPC.getUniqueId());
plugin.getData().saveConfig(true);
selectionNPC.spawn(plugin.getData().getSelectionNPCSpawn());
SkinTrait skinTrait = CitizensAPI.getTraitFactory().getTrait(SkinTrait.class);
selectionNPC.setProtected(true);
selectionNPC.addTrait(skinTrait);
skinTrait.setSkinName(plugin.getData().getSelectionNPCSkin(), true);
The following plugins are on the Main Server:
Citizens-2.0.35-b3545.jar
cloudnet-bridge.jar
LPC.jar
LuckPerms-Bukkit-5.4.141.jar
OldCombatMechanics.jar
parcour-1.0.0-RELEASE.jar (my plugin)
PlaceholderAPI-2.11.6.jar
ProtocolLib.jar
spark-1.10.109-bukkit.jar
SpigotLobbySystem-1.0-SNAPSHOT.jar
TAB-Bridge.v5.0.7.jar
ViaBackwards-5.0.3.jar
ViaVersion-5.0.3.jar
Worlds-1.13.2.jar
Citizens-2.0.35-b3545.jar
FastAsyncWorldEdit-Bukkit-2.8.5-SNAPSHOT.jar
ProtocolLib.jar
Worlds-1.13.2.jar
parcour-1.0.0-RELEASE.jar (my plugin)
Is there a possibility this could be caused by
- ProtocolLib (since I have a few problems with it at the moment)
- another plugin intersecting with Citizens?