Indyuce / bounty-hunters

Source code of BountyHunters Premium
https://www.spigotmc.org/resources/72142/
22 stars 23 forks source link

java.lang.NoSuchFieldError: PLAYER_HEAD #32

Closed louiscooldude41 closed 4 years ago

louiscooldude41 commented 4 years ago

Hello i have found a bug that doesnt allow me to use the plugin. Here is the message i get in the console: Error occurred while enabling BountyHunters v2.2.6 (Is it up to date?) java.lang.NoSuchFieldError: PLAYER_HEAD at net.Indyuce.bountyhunters.api.CustomItem.(CustomItem.java:23) ~[?:?] at net.Indyuce.bountyhunters.BountyHunters.onEnable(BountyHunters.java:154) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:381) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:330) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:422) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:383) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:338) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-dcd1643-e60fc34]

Indyuce commented 4 years ago

You're running 1.8-1.12 so you need to downgrade to 2.2.1 or get BountyHunters Premium