ScriptCraft

ScriptCraft

14.6k Downloads

PlayerInteractEvent with air

tjhgit opened this issue ยท 1 comments

commented

am trying to catch an event when the player interacts with air:

var evt1 = org.bukkit.event.player.PlayerInteractEvent;
events.on(evt1,my_evt_handler);

I found how to solve this:

in lib/events-bukkit.js

change this line:
regd = new bkRegisteredListener( __plugin, eventExecutor, priority, __plugin, true );

to:
regd = new bkRegisteredListener( __plugin, eventExecutor, priority, __plugin, false );

Does this make sense to you? Then please change this on github.

See also:
#256

commented

Will be fixed in the next release.