Skript

Skript

743k Downloads

IncompatibleClassChangeError: Method 'org.bukkit.entity.Villager$Profession[]

TheLimeGlass opened this issue ยท 0 comments

commented

Skript/Server Version

2.9.0 master
1.17.1 from Skript's own skriptTestJava17

Bug Description

Skript doesn't start

Expected Behavior

To not error and allow Skript to run

Steps to Reproduce

Start a 1.17 server with Skript 2.9.0

Errors or Screenshots

[09:05:15] [Server thread/ERROR]: Error occurred while enabling Skript v2.9.0-nightly-0e10975d5 (Is it up to date?)
java.lang.IncompatibleClassChangeError: Method 'org.bukkit.entity.Villager$Profession[] org.bukkit.entity.Villager$Profession.values()' must be Methodref constant
    at ch.njol.skript.entity.VillagerData.<clinit>(VillagerData.java:59) ~[Skript.jar:?]
    at java.lang.Class.forName0(Native Method) ~[?:?]
    at java.lang.Class.forName(Class.java:467) ~[?:?]
    at ch.njol.skript.util.Utils.getClasses(Utils.java:202) ~[Skript.jar:?]
    at ch.njol.skript.SkriptAddon.loadClasses(SkriptAddon.java:82) ~[Skript.jar:?]
    at ch.njol.skript.Skript.onEnable(Skript.java:557) ~[Skript.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[patched_1.17.1.jar:git-Paper-411]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.17.1.jar:git-Paper-411]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.17.1.jar:git-Paper-411]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:561) ~[patched_1.17.1.jar:git-Paper-411]
    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:475) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:733) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:317) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1220) ~[patched_1.17.1.jar:git-Paper-411]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-411]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
[09:05:15] [Server thread/INFO]: [Skript] Disabling Skript v2.9.0-nightly-0e10975d5

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.