Solved Getting AbstractMethodError from "set block to ___"

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Felnstaren

Member
Feb 18, 2019
2
0
0
21
I don't know why but the following skript is giving me an AbstractMethodError on the setBlock() method in the BlockSetter interface:

Code:
on break of coal ore:
 set block to cobblestone
Error:
Code:
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[13:22:59] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[13:22:59] [Server thread/ERROR]: #!#! You should report it at https://github.com/SkriptLang/Skript/issues. Please copy paste this report there (or use paste service).
[13:22:59] [Server thread/ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Stack trace:
[13:22:59] [Server thread/ERROR]: #!#! java.lang.AbstractMethodError
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.bukkitutil.block.MagicBlockCompat$MagicBlockSetter.setBlock(MagicBlockCompat.java:125)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.util.BlockUtils.set(BlockUtils.java:66)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.aliases.ItemType.setBlock(ItemType.java:384)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$6.change(DefaultChangers.java:286)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$6.change(DefaultChangers.java:1)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.Changer$ChangerUtils.change(Changer.java:70)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.EventValueExpression.change(EventValueExpression.java:191)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.WrapperExpression.change(WrapperExpression.java:124)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:284)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:152)
[13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)
[13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
[13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:290)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:217)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:889)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[13:22:59] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[13:22:59] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[13:22:59] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Version Information:
[13:22:59] [Server thread/ERROR]: #!#!   Skript: 2.3.5 (latest)
[13:22:59] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[13:22:59] [Server thread/ERROR]: #!#!     Date: 2019-02-09
[13:22:59] [Server thread/ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[13:22:59] [Server thread/ERROR]: #!#!   Minecraft: 1.12.2
[13:22:59] [Server thread/ERROR]: #!#!   Java: 1.8.0_171 (Java HotSpot(TM) 64-Bit Server VM 25.171-b11)
[13:22:59] [Server thread/ERROR]: #!#!   OS: Windows 7 amd64 6.1
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Server platform: Spigot
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Current node: null
[13:22:59] [Server thread/ERROR]: #!#! Current item: null
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Thread: Server thread
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! Language: english
[13:22:59] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[13:22:59] [Server thread/ERROR]: #!#!
[13:22:59] [Server thread/ERROR]: #!#! End of Error.
[13:22:59] [Server thread/ERROR]: #!#!

Note: I am running the latest version of skript on a 1.12.2 spigot server, the spigot server is being run off of my computer, not a remote host. The skript plugin successfully sets the block to cobblestone and raises the error after the fact. It is really more of an annoyance, considering the skript still functions as normal, even after the fact.

I've tested this using minehut's version of skript and it gives the caught error "Could not set block to cobblestone because the latter is not an item" so im assuming it has something to do with my skript version (2.3.5), which is different from minehut's (dev2.2-dev36)
 
Last edited:
So, basically, @Felnstaren, you'll have to use cobble instead of cobblestone. Pretty sure it's something going on with aliases...
 
Status
Not open for further replies.