ItemSlotMachine

ItemSlotMachine

74.6k Downloads

Getting NPE with /slot build <design> <name>

TNTUP opened this issue ยท 17 comments

commented

[16:24:26] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'slot' in plugin ItemSlotMachine v1.3.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-e497721-96d09e3]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[craftbukkit.jar:git-Spigot-e497721-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:645) ~[craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_65]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [craftbukkit.jar:git-Spigot-e497721-96d09e3]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]
Caused by: java.lang.NullPointerException
at java.lang.String.replace(String.java:2180) ~[?:1.7.0_65]
at com.darkblade12.itemslotmachine.message.MessageManager.slot_machine_building_failure(MessageManager.java:551) ~[?:?]
at com.darkblade12.itemslotmachine.command.slot.BuildCommand.execute(BuildCommand.java:35) ~[?:?]
at com.darkblade12.itemslotmachine.command.CommandHandler.onCommand(CommandHandler.java:53) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-e497721-96d09e3]
... 14 more

Does it has to include itemframes and sign? If so they're present, but what else idk whats is causing the error

commented

Any news on latest updates? Doesn't work in 1.8.3

commented

Just tested the current version on my test server and it still works fine for me. (generation and playing) I'm sorry but I can't really help you if I don't know what the issue exactly is :/

commented

on Spigot 1.8.3?

commented

huh, just tried on a test server it works nicely on the latest 1.8.3 spigot, last time on 1.8/3 it didn't work... Leeme try it on my productive server

EDIT: Nope, doesn't work, must be a plugin interfering with it.... Debug mode is enabled. Although I need to update Spigot, then ill retry.

EDIT2: Updated spigot, doesn't work. Same error :(

EDIT3: It needs the Item Pot enabled, I don't want that :/ Although I've set them to 0.

commented

Yes, I just ran the Spigot updater and took the new version and used the file on GitHub in my plugin folder, just to be safe not too use another version you don't have. Then I ran the server and tried to build a slot machine and played on it and everything worked fine. By the way, did you enable debug mode once? If not, please activate it, try again and then post the second error in the console. (there should be two after enabling debug)

commented

Hmm, so it does work if you enable the item pot in the template or what?

commented

Yep, turning the item pot on it works. Before with 1.7.10's it was fine and item pot was off.

commented

Okay, thanks for the info, I'll investigate this and report back if i found a fix!

commented

No problem :)

I reopened the issue then if the fix is done, feel free to close it again :)

commented

Just fixed this issue with the recent commit and added a new release here: https://github.com/DarkBlade12/ItemSlotMachine/releases/tag/1.3.3

commented

It seems like you're missing the slot_machine_building_failure message in your language file! Try to add slot_machine_building_failure=&cThe slot machine building failed! Cause: &6<cause> to your language file! Besides this error might happen because there's not enough space for the slot machine.

commented

Huh... I haven't touched the language file yet so how it can be missing since its from the plugin (generated new files)

Ill try adding it, but theres space for building it though...

commented

I checked the file and its there.. Idk whats wrong what I did though I did the same steps with the stable one on BukkitDev. Will retry setting a new one

EDIT: Same error. Can't figure the issue... Theres space for it tho...

commented

no updates since, dropping using this plugin since it doesn't work on my side doign the same steps as before. I'm closing it, giving up waiting

commented

Have you tried to set up and build another design? Or did you try out building one in the air?

commented

I tried building 4 in different ways no luck, even tried another design, still failing. Ill try one without plugins (test server) to see it if work, if so, must be a plugin preventing it, gotta do tests

commented

If this still doesn't work, you can send me your designs/setup in a compressed file via e-mail ([email protected]) for me to try that out!