Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3074

PlayerInteractEvent is not called for deopped players

XMLWordPrintable

      When right clicking (interacting), the following code is only called if the player is OP:

      @EventHandler
      public void onInteract(PlayerInteractEvent event) {
         try {
            System.out.println((new Random()).nextInt());
         } catch (Exception ex) {
            ex.printStackTrace();
         }
      }
      

      I have tested with only PlugMan and this code running, and the same issue occurs. What I did notice was when I had PermissionsEx installed, this was broken, but when I unloaded PermissionsEx via PlugMan, it fixed, but then when I stopped the server, disabled PermissionsEx, and started the server, it broke again.

       

      PlayerInteractEvent is a vital event for the majority of plugins and thus I have put this as a major bug.

            Unassigned Unassigned
            KingFaris10 Faris Rehman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: