Executable Items : Items that run commands!

Executable Items : Items that run commands! 1.0

DotCheck

New Member
DotCheck submitted a new resource:

Executable Items : Items that run commands! - A customizable ability to execute commands on interaction with select items.

With this plugin you may assign one or more commands to an item.
This plugin's properties are customizable via a config.yml.
Sample Config:

items:
item:
commands:
- "gamemode 1"
actions:
- 0
- 1
- 2
- 3
id: 1
server-execution: false
permission: "sample.perm"

There is currently a known issue regarding something being null.
It is being worked on!
Read more about this resource...
 

nixybuilder

Member
doesnt give the player item
21:40:51 [FATAL] Could not pass event 'cn.nukkit.event.player.PlayerInteractEvent' to 'ItemExecution v1.0': null on com.dotcheck.itemexecution.events.Handler
21:40:51 [ERROR] Throwing
cn.nukkit.utils.EventException: null
at cn.nukkit.plugin.LambdaEventExecutor.execute(LambdaEventExecutor.java:8) ~[patched.jar:?]
at cn.nukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:15) ~[patched.jar:?]
at cn.nukkit.plugin.PluginManager.callEvent(PluginManager.java:69) ~[patched.jar:?]
at cn.nukkit.level.Level.useItemOn(Level.java:293) ~[patched.jar:?]
at cn.nukkit.level.Level.useItemOn(Level.java:598) ~[patched.jar:?]
at cn.nukkit.Player.handleDataPacket(Player.java:2971) ~[patched.jar:?]
at cn.nukkit.network.session.RakNetPlayerSession.serverTick(RakNetPlayerSession.java:36) ~[patched.jar:?]
at cn.nukkit.network.RakNetInterface.process(RakNetInterface.java:26) ~[patched.jar:?]
at cn.nukkit.network.Network.processInterfaces(Network.java:142) ~[patched.jar:?]
at cn.nukkit.Server.b(Server.java:1126) ~[patched.jar:?]
at cn.nukkit.Server.tickProcessor(Server.java:1131) ~[patched.jar:?]
at cn.nukkit.Server.start(Server.java:636) ~[patched.jar:?]
at cn.nukkit.Server.<init>(Server.java:399) ~[patched.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:25) ~[patched.jar:?]
at nukkit.pm1e.launcher.Main.lambda$start$0(Main.java:71) ~[?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: java.lang.NullPointerException
at com.dotcheck.itemexecution.events.Handler.onPlayerInteract(Handler.java:17) ~[?:?]
at org.lanternpowered.lmbda.Lmbda$68.accept(Unknown Source) ~[patched.jar:?]
at cn.nukkit.plugin.LambdaEventExecutor.execute(LambdaEventExecutor.java:5) ~[patched.jar:?]
... 15 more
 
Top