Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KitPvP 2.2.4 error #291

Open
realcondar opened this issue Feb 10, 2025 · 5 comments
Open

KitPvP 2.2.4 error #291

realcondar opened this issue Feb 10, 2025 · 5 comments
Labels

Comments

@realcondar
Copy link

Problem
[01:27:08 ERROR]: Command exception: /kp create Ankylo
org.bukkit.command.CommandException: Unhandled exception executing command 'kp' in plugin KitPvP v2.2.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:82) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:105) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:435) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.Commands.performCommand(Commands.java:342) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.Commands.performCommand(Commands.java:332) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.commands.Commands.performCommand(Commands.java:326) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2204) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:2177) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:155) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1448) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:176) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:129) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1428) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1422) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1379) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1387) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.4.jar:1.21.4-136-e0711af]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.Sound.toString()" because "this.sound" is null
at KitPvP.jar/com.planetgallium.kitpvp.api.Ability.toResource(Ability.java:66) ~[KitPvP.jar:?]
at KitPvP.jar/com.planetgallium.kitpvp.util.Resources.addAbilityResource(Resources.java:125) ~[KitPvP.jar:?]
at KitPvP.jar/com.planetgallium.kitpvp.game.Kits.createKitFromPlayer(Kits.java:154) ~[KitPvP.jar:?]
at KitPvP.jar/com.planetgallium.kitpvp.game.Kits.createKit(Kits.java:44) ~[KitPvP.jar:?]
at KitPvP.jar/com.planetgallium.kitpvp.command.MainCommand.executeCreateKitCommand(MainCommand.java:477) ~[KitPvP.jar:?]
at KitPvP.jar/com.planetgallium.kitpvp.command.MainCommand.onCommand(MainCommand.java:147) ~[KitPvP.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.21.4-R0.1-SNAPSHOT.jar:?]
... 27 more

What I have tried
I have tried changing every sound in the configs, as well as letting the plugin generate a new config, nothing is working and I cant find the discord to ask for help.

Screenshot of /kp debug

Image

Any additional information (copy of config files, screenshots, videos, etc.)

@realcondar realcondar added the help wanted Inquiry label Feb 10, 2025
@cervinakuy
Copy link
Owner

Please provide a copy of the ability file you were trying to use when this happened.

@realcondar
Copy link
Author

I was trying to create a kit...

@cervinakuy
Copy link
Owner

cervinakuy commented Feb 10, 2025

Ah, accidentally misread. Can you try this jar and please confirm if it fixes the errors?

KitPvP.jar.zip

@realcondar
Copy link
Author

Whatever you did seems to have fixed the issue.
Thank you.

One more thing, How do I make the bomber ability work? When I renamed the kit it doesn't seem to work anymore..

@realcondar
Copy link
Author

Whatever you did seems to have fixed the issue. Thank you.

One more thing, How do I make the bomber ability work? When I renamed the kit it doesn't seem to work anymore..

Also when I delete the default abilities from the abilities.yml file they keep coming back...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants