Skip to content

Folia 1.21.11 First Join Error #224

@limmy08

Description

@limmy08

Terms

  • I'm using the very latest version of zEssentials and its dependencies (zMenu and PlaceholdersAPI).
  • I am sure this is a bug and it is not caused by a misconfiguration or by another plugin.
  • I've looked for already existing issues on the Issue Tracker and haven't found any.
  • I already searched on the plugin wiki to know if a solution is already known.
  • I already searched on the discord to check if anyone already has a solution for this.
  • I tested this with just zEssentials and its dependencies and with a vanilla client of the same version as the Server.
  • I enabled the debug mode in config.yml and sql debug

Discord Username (optional)

limmy

Server Version

1.21.4

Server Software

This server is running Folia version 1.21.11-12-ver/1.21.11@6d795a8 (2026-02-08T00:47:27Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version

zEssentials Version

zEssentials version 1.0.3.3
Provides an essential, core set of commands for Bukkit.
Website: https://groupez.dev/
Author: [Maxlego08]
Contributors: Louis_Dew, Traqueur, JavaToastDev, Melon-Oof, alwyn974, Mapacheee, NeiiZun, and groundbreakingmc

zMenu Version

zMenu version 1.1.0.9
Inventory management plugin
Website: https://groupez.dev/resources/zmenu.253
Author: Maxlego08
Contributors: mani1232, lijinhong11, Adreez, EnzoShoes, Noltox, saildrag, alwyn974, and 1robie

What happened?

When setting the first join location on folia 1.21.11 with zessentials and then trying to join as a new player, I spawn in the overworld, not my spawn world. There are 2 different errors that I get pasted below (separated by a divider line).

Steps to reproduce the issue

  1. Make a 1.21.11 folia server.
  2. Install Zessentials, Zmenu, placeholder api and install any world management plugin.
  3. Create a new world and run /setfirstspawn.
  4. Stop the server, erase playerdata and start server.
  5. Join and get the error, and spawn in the overworld.

Full Server Log

https://mclo.gs/AWcIxsH

Error (optional)

[00:54:35 ERROR]: Could not pass event PlayerJoinEvent to zEssentials v1.0.3.3
java.lang.UnsupportedOperationException: Must use teleportAsync while in region threading
        at org.bukkit.craftbukkit.entity.CraftPlayer.teleport0(CraftPlayer.java:1337) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:303) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:293) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at org.bukkit.craftbukkit.entity.CraftEntity.teleport(CraftEntity.java:288) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at zEssentials-1.0.3.3.jar//fr.maxlego08.essentials.module.modules.SpawnModule.lambda$loadConfiguration$3(SpawnModule.java:71) ~[?:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:71) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:310) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:366) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:179) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.lambda$handleConfigurationFinished$3(ServerConfigurationPacketListenerImpl.java:228) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue$ChunkBasedPriorityTask.executeInternal(RegionizedTaskQueue.java:529) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue.executeTask(RegionizedTaskQueue.java:456) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$RegionTaskQueueData.drainTasks(RegionizedTaskQueue.java:278) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1715) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:429) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:485) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:481) ~[folia-1.21.11.jar:1.21.11-11-e112b00]
        at ca.spottedleaf.concurrentutil.scheduler.EDFSchedulerThreadPool$TickThreadRunner.run(EDFSchedulerThreadPool.java:526) ~[concurrentutil-0.0.8.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

-----------------------------------------------------------------------------------------------------------------------

18:05:05 ERROR]: Could not pass event PlayerJoinEvent to zEssentials v1.0.3.3
java.lang.IllegalStateException: Player is already removed from player chunk loader
        at ca.spottedleaf.moonrise.patches.chunk_system.player.RegionizedPlayerChunkLoader.removePlayer(RegionizedPlayerChunkLoader.java:221) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at ca.spottedleaf.moonrise.paper.util.BaseChunkSystemHooks.removePlayerFromDistanceMaps(BaseChunkSystemHooks.java:167) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ChunkMap.updatePlayerStatus(ChunkMap.java:929) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ChunkMap.removeEntity(ChunkMap.java:1027) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerChunkCache.removeEntity(ServerChunkCache.java:751) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingEnd(ServerLevel.java:2993) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerLevel$EntityCallbacks.onTrackingEnd(ServerLevel.java:2874) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup.entityStatusChange(EntityLookup.java:304) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at ca.spottedleaf.moonrise.patches.chunk_system.level.entity.EntityLookup$EntityCallback.onRemove(EntityLookup.java:1001) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.world.entity.Entity.setRemoved(Entity.java:6032) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.world.entity.Entity.remove(Entity.java:738) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.world.entity.LivingEntity.remove(LivingEntity.java:766) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.world.entity.player.Player.remove(Player.java:1351) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerLevel.removePlayerImmediately(ServerLevel.java:1795) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerPlayer.transformForAsyncTeleport(ServerPlayer.java:1810) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.level.ServerPlayer.transformForAsyncTeleport(ServerPlayer.java:204) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.world.entity.Entity.teleportAsync(Entity.java:4447) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at org.bukkit.craftbukkit.entity.CraftEntity.lambda$teleportAsync$5(CraftEntity.java:1136) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at org.bukkit.craftbukkit.entity.CraftEntity.teleportAsync(CraftEntity.java:1151) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at org.bukkit.entity.Entity.teleportAsync(Entity.java:277) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.entity.Entity.teleportAsync(Entity.java:258) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at zEssentials-1.0.3.3.jar//fr.maxlego08.essentials.libs.folialib.impl.FoliaImplementation.teleportAsync(FoliaImplementation.java:509) ~[?:?]
        at zEssentials-1.0.3.3.jar//fr.maxlego08.essentials.listener.PlayerListener.onJoin(PlayerListener.java:193) ~[?:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:71) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[folia-api-1.21.11-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:310) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:366) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:179) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.lambda$handleConfigurationFinished$3(ServerConfigurationPacketListenerImpl.java:228) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue$ChunkBasedPriorityTask.executeInternal(RegionizedTaskQueue.java:529) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue.executeTask(RegionizedTaskQueue.java:456) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.threadedregions.RegionizedTaskQueue$RegionTaskQueueData.drainTasks(RegionizedTaskQueue.java:278) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1715) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:429) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:485) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:481) ~[folia-1.21.11.jar:1.21.11-12-6d795a8]
        at ca.spottedleaf.concurrentutil.scheduler.EDFSchedulerThreadPool$TickThreadRunner.run(EDFSchedulerThreadPool.java:526) ~[concurrentutil-0.0.8.jar:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions