Altar Crafting

Discussion in 'Plugin Requests' started by Flopfleee, Dec 19, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    Flopfleee


    It works flawlessly. Tysm for everything. It's amazing.
     
  2. Offline

    raffel080108

    Sure - No problem. I had a lot of fun creating this project and I will continue to maintain it. If you have any more bugs/questions/feature requests, please make sure to post them here or on the GitHub :)
    You can also give a review on the plugin the SpigotMC page, if you want to - No pressure there of course, I don't really care that much about it - Just saying ;)
     
    Flopfleee likes this.
  3. Offline

    Flopfleee


    Of course. If I have any other requests, I'll let you know.
     
  4. Offline

    mehboss

    I tested this out because I wanted to see its capabilities. I encountered an error upon right-clicking any block after creating the altar.
    Code:
    [ERROR] Could not pass event PlayerInteractEvent to AltarCrafting v1.2
    
    org.bukkit.event.EventException: null
    
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-api-1.19.3-R0.1-SNAPSHOT.jar:?]
    
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-api-1.19.3-R0.1-SNAPSHOT.jar:?]
    
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-api-1.19.3-R0.1-SNAPSHOT.jar:?]
    
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-api-1.19.3-R0.1-SNAPSHOT.jar:?]
    
    at org.bukkit.craftbukkit.v1_19_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:511) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.level.PlayerInteractManager.a(PlayerInteractManager.java:495) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1645) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.network.protocol.game.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1154) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.bh(MinecraftServer.java:1133) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1126) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.util.thread.IAsyncTaskHandler.bq(SourceFile:115) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.i_(MinecraftServer.java:1109) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1021) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:301) ~[spigot-1.19.3-R0.1-SNAPSHOT.jar:3653-Spigot-19641c7-6aeb5e4]
    
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
    
    Caused by: java.lang.NoSuchMethodError: 'boolean org.bukkit.event.block.Action.isRightClick()'
    
    at me.raffel080108.altarcrafting.listeners.AltarCraftHandler.playerInteractEvent(AltarCraftHandler.java:54) ~[?:?]
    
    at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?]
    
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-api-1.19.3-R0.1-SNAPSHOT.jar:?]
    
    ... 22 more
    Stick/diamond in-hand ;) -- or empty handed.

    update: Eh version 1.19.3. Not sure if it is supported. lol
     
  5. Offline

    Flopfleee


    Not sure why you are getting this error. It works fine for 1.18. Must be a version issue.
     
    mehboss likes this.
  6. Offline

    mehboss

    I know. 1.19.2 and 1.19.3 isn't supported. I tried it on 1.18 and it worked. -- I would like to mention that the spigot posting claims 1.19 support though. Not a big deal.
     
  7. Offline

    raffel080108

    I did all my testing on a 1.19.3 server, there must be some issue specific to your 1.19 server here

    The error generated is displayed as originating from the method PlayerInteractEvent#getAction()#isRightClick(), which is definitely a valid method and, as said, everything worked fine for me on a 1.19.3 server

    My server is running on Purpur 1.19.3 (specifically git-Purpur-1905 (MC: 1.19.3)), maybe you are using a different server software which is somehow causing the issue
     
    Last edited: Feb 13, 2023
  8. Offline

    mehboss

    I tested it on the test server that I use for plugins that I code. I used a fresh install of Spigot 1.19.x and encountered the error. I agree with your statement; however, it is a valid method.
     
  9. Offline

    raffel080108

    My plugin is coded against the PaperMC API and not the SpigotAPI itself, maybe that is causing this issue on a Spigot server somehow..? Try using an installation of PaperMC or Purpur maybe
     
    Last edited: Feb 13, 2023
Thread Status:
Not open for further replies.

Share This Page