KubeJS script suddenly times out server
Minecraft version: 1.20.1 Fabric
Hello! I did inquire about this on the KubeJS Discord yesterday, but so far no one has responded to it yet. My script used to work, but is now crashing the server and I have not changed it. I'm not sure that the KubeJS script is actually wrong - but if there is a bug or another issue, I could use the help pinpointing what's actually going on. My script has no parsing errors in Visual Studio or when loaded with KubeJS.
The script is a chat command that checks if the player has
whimsy.prefix.phoenix
before removing other cosmetic ranks and then giving them the phoenix rank with LuckPerms if they do have the permission, or telling them that they don't have the required permissions if they don't have the permission.
Here is the script (it was too large to paste here): https://mclo.gs/QJvsN1Z
Here is my crash report: https://mclo.gs/VuduoQ9
Here is my server log from boot to crash, after performing the script: https://mclo.gs/ZHYK2gV
I would like to add that the script does correctly log depending on the permissions. If the player does NOT have the permission, it tells them like it should. If the player DOES have permission, it tells them that their rank has been set to Phoenix but their LuckPerms ranks don't change. The server will time out until it crashes regardless of whether or not the player has the permission as I've tested both scenarios.
If anyone has any ideas, I'd be most grateful!0 Replies