1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Getting AbstractMethodError from "set block to ___"

Discussion in 'Skript' started by Felnstaren, Feb 18, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. Felnstaren

    Felnstaren Member

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

    Code (Text):
    1. on break of coal ore:
    2.  set block to cobblestone
    Error:
    Code (Text):
    1. [13:22:59] [Server thread/ERROR]: #!#!
    2. [13:22:59] [Server thread/ERROR]: #!#! [Skript] Severe Error:
    3. [13:22:59] [Server thread/ERROR]: #!#!
    4. [13:22:59] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
    5. [13:22:59] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    6. [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).
    7. [13:22:59] [Server thread/ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
    8. [13:22:59] [Server thread/ERROR]: #!#!
    9. [13:22:59] [Server thread/ERROR]: #!#! Stack trace:
    10. [13:22:59] [Server thread/ERROR]: #!#! java.lang.AbstractMethodError
    11. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.bukkitutil.block.MagicBlockCompat$MagicBlockSetter.setBlock(MagicBlockCompat.java:125)
    12. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.util.BlockUtils.set(BlockUtils.java:66)
    13. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.aliases.ItemType.setBlock(ItemType.java:384)
    14. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$6.change(DefaultChangers.java:286)
    15. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.data.DefaultChangers$6.change(DefaultChangers.java:1)
    16. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.classes.Changer$ChangerUtils.change(Changer.java:70)
    17. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.EventValueExpression.change(EventValueExpression.java:191)
    18. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.WrapperExpression.change(WrapperExpression.java:124)
    19. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:284)
    20. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    21. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    22. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    23. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    24. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:152)
    25. [13:22:59] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)
    26. [13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    27. [13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500)
    28. [13:22:59] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485)
    29. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:290)
    30. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:217)
    31. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:889)
    32. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40)
    33. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10)
    34. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
    35. [13:22:59] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    36. [13:22:59] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(Unknown Source)
    37. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
    38. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748)
    39. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
    40. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
    41. [13:22:59] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
    42. [13:22:59] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
    43. [13:22:59] [Server thread/ERROR]: #!#!
    44. [13:22:59] [Server thread/ERROR]: #!#! Version Information:
    45. [13:22:59] [Server thread/ERROR]: #!#!   Skript: 2.3.5 (latest)
    46. [13:22:59] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
    47. [13:22:59] [Server thread/ERROR]: #!#!     Date: 2019-02-09
    48. [13:22:59] [Server thread/ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
    49. [13:22:59] [Server thread/ERROR]: #!#!   Minecraft: 1.12.2
    50. [13:22:59] [Server thread/ERROR]: #!#!   Java: 1.8.0_171 (Java HotSpot(TM) 64-Bit Server VM 25.171-b11)
    51. [13:22:59] [Server thread/ERROR]: #!#!   OS: Windows 7 amd64 6.1
    52. [13:22:59] [Server thread/ERROR]: #!#!
    53. [13:22:59] [Server thread/ERROR]: #!#! Server platform: Spigot
    54. [13:22:59] [Server thread/ERROR]: #!#!
    55. [13:22:59] [Server thread/ERROR]: #!#! Current node: null
    56. [13:22:59] [Server thread/ERROR]: #!#! Current item: null
    57. [13:22:59] [Server thread/ERROR]: #!#!
    58. [13:22:59] [Server thread/ERROR]: #!#! Thread: Server thread
    59. [13:22:59] [Server thread/ERROR]: #!#!
    60. [13:22:59] [Server thread/ERROR]: #!#! Language: english
    61. [13:22:59] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
    62. [13:22:59] [Server thread/ERROR]: #!#!
    63. [13:22:59] [Server thread/ERROR]: #!#! End of Error.
    64. [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)
     
    #1 Felnstaren, Feb 18, 2019
    Last edited: Feb 18, 2019
  2. TPGamesNL

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    1,311
    Likes Received:
    73
    Medals:
  3. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    67
    Likes Received:
    2
    So, basically, @Felnstaren, you'll have to use cobble instead of cobblestone. Pretty sure it's something going on with aliases...
     
Thread Status:
Not open for further replies.
Loading...