ThizThizzyDizzy / tree-feller

The most customizable tree feller ever made.
GNU General Public License v3.0
39 stars 11 forks source link

Auraskill Compatibility Error #98

Closed Vrtox closed 1 month ago

Vrtox commented 1 month ago

Hello,

I have an issue with Treefeller and Auraskills. The Trees are still getting felled but the integration with AuraSkills just doesnt seem to be working. You dont get Foraging XP. If you need more information feel free to ask. Whenever I fell a tree it gives the following error message:

[14:38:05 ERROR]: [TreeFeller] Exception in AuraSkills compatibility!
java.lang.IllegalArgumentException: Invalid NamespacedId: foraging
        at AuraSkills-2.2.4.jar/dev.aurelium.auraskills.api.registry.NamespacedId.fromString(NamespacedId.java:69) ~[AuraSkills-2.2.4.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.compat.AuraSkillsCompat.breakBlock(AuraSkillsCompat.java:275) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.compat.TreeFellerCompat.breakBlock(TreeFellerCompat.java:57) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.breakBlock(TreeFeller.java:975) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.fellTree(TreeFeller.java:295) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.fellTree(TreeFeller.java:97) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.fellTree(TreeFeller.java:94) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.fellTree(TreeFeller.java:91) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFeller.fellTree(TreeFeller.java:88) ~[TreeFeller-1.24.2.jar:?]
        at TreeFeller-1.24.2.jar/com.thizthizzydizzy.treefeller.TreeFellerEventListener.onBlockBreak(TreeFellerEventListener.java:26) ~[TreeFeller-1.24.2.jar:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor220.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-128-d348cb8]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.level.ServerPlayerGameMode.destroyBlock(ServerPlayerGameMode.java:383) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.level.ServerPlayerGameMode.destroyAndAck(ServerPlayerGameMode.java:342) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:306) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1856) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:51) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:20) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1535) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1512) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1505) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1464) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1471) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1316) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

I use Java 21 (OpenJDK 64-Bit Server VM 21.0.3+9-LTS; Eclipse Adoptium Temurin-21.0.3+9) on Linux 5.4.0-198-generic with Paper 1.21.1 Build #128 (latest)

and the following plugins

Thanks, Vertox

ThizThizzyDizzy commented 1 month ago

The defaults in the TreeFeller config are invalid; aura skills is namespaced now Update the aura skills referenced in the config to say "auraskills:foraging" instead of foraging, for example

Vrtox commented 1 month ago

Thanks for the quick response! it didnt work with auraskills:foraging but then I checked the auraskills skills.yml and it worked with auraskills/foraging