Lower event priority of PlayerInteractEvent in order to notify other

plugins (e.g. ServerSigns) that this event is canceled. 

Fixes Xephi/AuthMeReloaded#283
This commit is contained in:
games647 2015-11-27 19:02:21 +01:00
parent 8ed672e89d
commit 401f438211

View File

@ -440,7 +440,7 @@ public class AuthMePlayerListener implements Listener {
* *
* @param event PlayerInteractEvent * @param event PlayerInteractEvent
*/ */
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST) @EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
public void onPlayerInteract(PlayerInteractEvent event) { public void onPlayerInteract(PlayerInteractEvent event) {
Player player = event.getPlayer(); Player player = event.getPlayer();
if (player == null || Utils.checkAuth(player)) if (player == null || Utils.checkAuth(player))