mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-07 07:06:41 +02:00
Shouldn't really be canceling events at priority monitor, oops.
This commit is contained in:
@@ -317,9 +317,11 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.NORMAL)
|
||||||
public void onPlayerInteract(final PlayerInteractEvent event)
|
public void onPlayerInteract(final PlayerInteractEvent event)
|
||||||
{
|
{
|
||||||
|
final User user = ess.getUser(event.getPlayer());
|
||||||
|
user.updateActivity(true);
|
||||||
switch (event.getAction())
|
switch (event.getAction())
|
||||||
{
|
{
|
||||||
case RIGHT_CLICK_BLOCK:
|
case RIGHT_CLICK_BLOCK:
|
||||||
@@ -334,7 +336,6 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
break;
|
break;
|
||||||
case LEFT_CLICK_AIR:
|
case LEFT_CLICK_AIR:
|
||||||
case LEFT_CLICK_BLOCK:
|
case LEFT_CLICK_BLOCK:
|
||||||
final User user = ess.getUser(event.getPlayer());
|
|
||||||
if (user.hasPowerTools() && user.arePowerToolsEnabled())
|
if (user.hasPowerTools() && user.arePowerToolsEnabled())
|
||||||
{
|
{
|
||||||
if (usePowertools(user))
|
if (usePowertools(user))
|
||||||
|
Reference in New Issue
Block a user