CraftBook 3

CraftBook 3

139k Downloads

3.86 command items not working

LadyCailinBot opened this issue ยท 5 comments

commented

CRAFTBOOK-2933 - Reported by hmmcrunchy

hi there

im having a little trouble running command items i get this error on using one item

this is item from command-items.yml using netherstar as the item ive tried different items too both items and blocks

ive also tried it with advanced block checks on and off (found that may be solution in previous thread

command-items:
command-items:
dragonStar:
item: 399|Dragon Star
commands:
- edpride
permission-node: 'dragonstar.use'
run-as: SUPERUSER
click-type: CLICK_RIGHT
delay: 0
delayed-commands: []
cooldown: 120
cancel-action: true
consumed-items:
- ''
require-sneaking-state: either
consume-self: true

ERROR:

[11:18:40 ERROR]: Could not pass event PlayerInteractEvent to CraftBook v3.8-SNA
PSHOT:3676-6e78d40,master
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:320) ~[spigot.jar:git-Spigot-1323]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62) ~[spigot.jar:git-Spigot-1323]
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredLi
stener.java:30) ~[spigot.jar:git-Spigot-1323]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:487) [spigot.jar:git-Spigot-1323]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:472) [spigot.jar:git-Spigot-1323]
at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInte
ractEvent(CraftEventFactory.java:212) [spigot.jar:git-Spigot-1323]
at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInte
ractEvent(CraftEventFactory.java:182) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java
:605) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.PacketPlayInBlockPlace.a(SourceFile:60)
[spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.PacketPlayInBlockPlace.handle(SourceFile
:9) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147
) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java
:77) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:7
00) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2
73) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5
62) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
:469) [spigot.jar:git-Spigot-1323]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
17) [spigot.jar:git-Spigot-1323]
Caused by: java.lang.NullPointerException
at com.sk89q.craftbook.mech.items.CommandItems.performCommandItems(Comma
ndItems.java:343) ~[?:?]
at com.sk89q.craftbook.mech.items.CommandItems.onPlayerInteract(CommandI
tems.java:172) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0
_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0
_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
.7.0_10]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_10]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:318) ~[spigot.jar:git-Spigot-1323]
... 16 more

thanks :)

commented

Comment by me4502

If that doesn't work, up date craftbook, as currently that error is useless due to being on an outdated version.

commented

Comment by hmmcrunchy

thanks very much that seems to have sorted the issue :)

commented

Comment by me4502

You're welcome

commented

Comment by hmmcrunchy

paste bin of report.txt
http://pastebin.com/B2MLY4er

commented

Comment by me4502

Set consumed items to: consumed-items: [], instead of that half line you currently have.