GrimAnticheat / Grim

Fully async, multithreaded, predictive, open source, 3.01 reach, 1.005 timer, 0.01% speed, 99.99% antikb, "bypassable" 1.8-1.20 anticheat.
GNU General Public License v3.0
1.11k stars 331 forks source link

GrimSpectate Command is not folia compatible #1572

Open J4n-T opened 5 months ago

J4n-T commented 5 months ago

Describe the bug and how to replicate it

The grim spectate command uses player.teleport which is not supported on folia. For folia the function player.teleportAsync would be needed but that would break java 8 compatability. I'm currently looking into that to see if there is a way to maybe load some classes if the plugin runs on folia to fix that. I'm open for ideas :D

Grim version

any

Server version

Any folia version

Plugins

Not important for this issue

J4n-T commented 5 months ago

I've got it working through a subproject and class loading during runtime. I've tested it on Folia 1.20.4 and Spigot 1.8.8 and found no errors. MR is following