Skip to content

PlayerInteractEvent with air #287

Description

@tjhgit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions