mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-01 06:33:35 +01:00
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:
parent
8ed672e89d
commit
401f438211
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user