#Citizens keeps chunks loaded on paper

27 messages · Page 1 of 1 (latest)

iron ridge
#

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?
unborn briarBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

frosty raptor
#

!logs

languid leafBOT
# frosty raptor !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

frosty raptor
#

@iron ridge post logs from your main server

iron ridge
iron ridge
frosty raptor
languid leafBOT
#
Server Version

Paper version git-Paper-550 (MC: 1.19.4)

Plugin Version(s)

Citizens v2.0.35-SNAPSHOT (build 3545) -- (:warning:Outdated build, behind by 72)

Checked For

@frosty raptor

Other Noteworthy Plugin(s)

ProtocolLib v5.4.0-SNAPSHOT-735

Possibly Relevant Plugin(s)

ViaVersion v5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.

frosty raptor
#

@iron ridge can you try updating citizens, turning on debug-mode in config and then posting a log after demonstrating the problem?

iron ridge
#

Sure

iron ridge
# frosty raptor <@275315674480377857> can you try updating citizens, turning on debug-mode in co...

I updated, enabled debug mode and Citizens first sent the following

[19:39:17] [Server thread/INFO]: [Citizens] Respawning all NPCs at [24,13] due to org.bukkit.event.world.ChunkLoadEvent@6dad4801 at [24,13]
[19:39:17] [Server thread/INFO]: [Citizens] Removing respawns of 2{§6Parkour-Auswahl §7(Rechtsklick), PLAYER} due to SpawnReason.CHUNK_LOAD
[19:39:17] [Server thread/INFO]: [Citizens] Spawned 2{§6Parkour-Auswahl §7(Rechtsklick), PLAYER} SpawnReason.CHUNK_LOAD
[19:39:17] [Server thread/INFO]: [Citizens] Spawned 2{§6Parkour-Auswahl §7(Rechtsklick), PLAYER} during org.bukkit.event.world.ChunkLoadEvent@6dad4801 at [24,13]

Afterwards it continously sends the following output:

[19:39:17] [Server thread/INFO]: [Citizens] Retrying spawn of 0{§6Parkour-Auswahl §7(Rechtsklick), AREA_EFFECT_CLOUD} later, SpawnReason.PLUGIN. Was loaded true is loaded true
[19:39:17] [Server thread/INFO]: [Citizens] Stored 0{§6Parkour-Auswahl §7(Rechtsklick), AREA_EFFECT_CLOUD} for respawn from NPCNeedsRespawnEvent
[19:39:17] [Server thread/INFO]: [Citizens] Tried to despawn 0{§6Parkour-Auswahl §7(Rechtsklick), null} while already despawned, DespawnReason.REMOVAL
#

If you want, I can also send you the full logs again

frosty raptor
iron ridge
frosty raptor
languid leafBOT
#
Server Version

Paper version git-Paper-550 (MC: 1.19.4)

Plugin Version(s)

Citizens v2.0.36-SNAPSHOT (build 3617) -- (Current build :white_check_mark:)

Checked For

@frosty raptor

UUID Version

4 (:white_check_mark: Online)

Other Noteworthy Plugin(s)

ProtocolLib v5.4.0-SNAPSHOT-735

Possibly Relevant Plugin(s)

ViaVersion v5.0.3 - Mixed client vs server versions can sometimes cause packet-related issues.

frosty raptor
#

I'll look into this tomorrow

iron ridge
sweet cloakBOT
#
Changed to Bug

Thread is now a Bug thread. This indicates a core code bug that a developer must resolved, not an error message or other support topic. Please do not misuse the Bug label. Use </helpthread:1028674284870180883> to switch the thread back to a normal help thread if you are not 100% confident it is a code bug.

frosty raptor
#

Chunk loading

frosty raptor
#

Citizens keeps chunks loaded on paper

sweet cloakBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@iron ridge