Skript: Latest 1.12.2 Compile with Skript throws error

Created on 9 Nov 2017  路  10Comments  路  Source: SkriptLang/Skript

java.lang.NoSuchFieldError: SHEEP_EAT
at ch.njol.skript.util.VisualEffect$Type.(VisualEffect.java:80) ~[?:?]
at ch.njol.skript.util.VisualEffect.(VisualEffect.java:255) ~[?:?]
at ch.njol.skript.classes.data.SkriptClasses.(SkriptClasses.java:889) ~[?:?]
at ch.njol.skript.Skript.onEnable(Skript.java:282) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:384) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:333) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-95dd097-326c2e6]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]

enhancement

Most helpful comment

Please do not spam the issue tracker.

All 10 comments

I have the same problem:
https://hastebin.com/foyepewaqa.vbs

Skript does not even start :-(

This happens only in the latest Spigot 1.12.2 releases, such as the SHEEP_EAT enum value has been removed from the EntityEffect enum as this commit says.

Spigot removed functionality from their API without deprecating it first. Besides, as far as I know, no replacement was added.

Not a Skript bug. I'll try talking with Spigot folks, but it'll probably take a few days at least to figure out what is going on.

Error too. Any hotfix ? Thanks.

java.lang.NoSuchFieldError: SHEEP_EAT
at ch.njol.skript.util.VisualEffect$Type.(VisualEffect.java:80) ~[?:?]
at ch.njol.skript.util.VisualEffect.(VisualEffect.java:255) ~[?:?]
at ch.njol.skript.classes.data.SkriptClasses.(SkriptClasses.java:889) ~[?:?]
at ch.njol.skript.Skript.onEnable(Skript.java:282) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.12.2.jar:git-Paper-1250]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:316) [patched_1.12.2.jar:git-Paper-1250]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [patched_1.12.2.jar:git-Paper-1250]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:386) [patched_1.12.2.jar:git-Paper-1250]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:335) [patched_1.12.2.jar:git-Paper-1250]
at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:442) [patched_1.12.2.jar:git-Paper-1250]
at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:403) [patched_1.12.2.jar:git-Paper-1250]
at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:341) [patched_1.12.2.jar:git-Paper-1250]
at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:292) [patched_1.12.2.jar:git-Paper-1250]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:616) [patched_1.12.2.jar:git-Paper-1250]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]

Spigot folks were helpful, but couldn't actually resolve the issue. I hope my workaround works, no time for testing today.

@comonier -

no stress, no need to worry about more than 1,000 minecraft servers, and 1 million players depending on that solution to work again, because 99% of minecraft server owners prefer to use small skript scripts when use heavy plugins. you're the guy, we love you and your job, and we'll wait for you to get back to skript again

I'm not sure if you are trying to be toxic but your comment comes across like you think that bensku owes the people using the free software he maintains in his own free time continued support (again, for free). If this is what you think, you need to reevaluate whether or not Skript is for you.

Yeah I was gonna reply to him but my reply wouldn鈥檛 of been the nicest so I just kept my mouth shut

I was not trying to be toxic. You guys are ridiculous, I was hailing a super programmer saying that the plugin he made is loved by more than 1 million users. toxic are you who make vicious comments in the comments of others. the last update of spigot has solved the problem, the plugin is loaded correctly with no problems.

last build: d21162c-61e0c69 need to recompile using buildtools on latest commit
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/commits/d21162c022608caa31619b4d2ead39e808947df9

I'm almost certain you were trying to be toxic, this isn't the first time you've said something like that then deleted it (https://github.com/Rocologo/MobHunting/issues/322). Could be your bad english conveying the wrong message.

Please do not spam the issue tracker.

Was this page helpful?
0 / 5 - 0 ratings