Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Add support for Folia

Open JRoy opened this issue 1 year ago • 18 comments

this barely works

todo;

  • [ ] validate timer race conditions
  • [ ] fix the tps command shit
  • [ ] InteractionControllerImpl commands don't fucking fire, need to figure out what im going to do, need to delegate threads for commands to run OUTside of the jda event but also get some of that off netty threads
  • [ ] review everything ran on global thread
  • [ ] entire discord module probably doesn't work
  • [ ] finish static accesses to the scheduler
  • [ ] what are we doing with api events

JRoy avatar Mar 29 '23 23:03 JRoy

there is a problem with essentialsSpawn folia respawn-listener is not working no matter how i tune

respawn-listener-priority: high
spawn-join-listener-priority: high
respawn-at-home: false
respawn-at-home-bed: true

player die will not go back to essentials spawn point if no vanilla spawnpoint, bed and home is set

this does not happen in paper/spigot

cgw2023 avatar Jun 20 '23 14:06 cgw2023

1.20.1 support please :)

HyCore avatar Jun 28 '23 21:06 HyCore

please update for 1.20.1

xcomcadx avatar Jul 18 '23 16:07 xcomcadx

This PR runs well on folia 1.20.1 for me.

The only minor issue I've encountered so far is the time and weather setting commands give an error: CleanShot 2023-07-27 at 17 48 13@2x

The vanilla command (/minecraft:time set day) work fine so this is really minor.

iLemon avatar Jul 27 '23 16:07 iLemon

Updated to latest 2.x and fixed time + weather command

JRoy avatar Jul 28 '23 00:07 JRoy

The time and weather commands now show a success message but doesn't seem to actually have an effect on the time/weather.

[17:46:45] [Region Scheduler Thread #1/INFO]: iLemon issued server command: /time night
[17:46:45] [Region Scheduler Thread #1/WARN]: [Essentials] Location task for Essentials v2.20.1-dev+67-0c8bc16 in world CraftWorld{name=world} at 0, 0 generated an exception
java.lang.IllegalStateException: Cannot modify time off of the global region
	at io.papermc.paper.threadedregions.RegionizedServer.ensureGlobalTickThread(RegionizedServer.java:106) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at org.bukkit.craftbukkit.v1_20_R1.CraftWorld.setTime(CraftWorld.java:858) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at com.earth2me.essentials.commands.Commandtime.lambda$run$0(Commandtime.java:92) ~[EssentialsX-2.20.1-dev+67-0c8bc16.jar:?]
	at io.papermc.paper.threadedregions.scheduler.FoliaRegionScheduler.lambda$wrap$0(FoliaRegionScheduler.java:35) ~[folia-1.20.1.jar:?]
	at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue$ChunkBasedPriorityTask.executeInternal(RegionizedTaskQueue.java:504) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at io.papermc.paper.threadedregions.RegionizedTaskQueue$PrioritisedQueue.executeTask(RegionizedTaskQueue.java:434) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at io.papermc.paper.threadedregions.RegionizedTaskQueue$RegionTaskQueueData.drainTasks(RegionizedTaskQueue.java:263) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1514) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:360) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.1.jar:git-Folia-"daacd42"]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

iLemon avatar Jul 31 '23 17:07 iLemon

I thought weather commands were disabled on folia

Git-North avatar Aug 10 '23 16:08 Git-North

Fixed the commands again

JRoy avatar Aug 22 '23 16:08 JRoy

Everything works fine except the respawn feature (tested from the previous comment to see if it was still an issue)

LuluxClient avatar Sep 09 '23 06:09 LuluxClient

No issues on my end after testing it on prod, would love to see a merge to the main branch

DarkyG2 avatar Sep 25 '23 15:09 DarkyG2

[Essentials] Dispatching command async kits: newplayer: delay: -1 items: - eco give {USERNAME} 10

nyancat-hu avatar Jan 03 '24 15:01 nyancat-hu

Small issue with commands in kits, I'm getting the error "[22:57:44 WARN]: [Essentials] Dispatching command async" and that's it and I won't receive the items executed thru a command

DarkyG2 avatar Feb 06 '24 22:02 DarkyG2

2.21.0 ?

Potothingi avatar Feb 12 '24 11:02 Potothingi

Maybe never is updated for Folia

RitaSister avatar May 10 '24 13:05 RitaSister

folia support is work 1.20.6?

TATA82 avatar May 11 '24 13:05 TATA82

folia support is work 1.20.6?

no, doesn't support

RitaSister avatar May 11 '24 14:05 RitaSister

folia support is work 1.20.6?

but I'm added support for folia just forked

RitaSister avatar Jun 08 '24 10:06 RitaSister

Will 1.21 be updated?

Q2297045667 avatar Jun 19 '24 14:06 Q2297045667