mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Shouldn't really be canceling events at priority monitor, oops.
This commit is contained in:
parent
622ca4bf8a
commit
7737d19c5a
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue