Fixed #146 by reverting event priority f*ckup

This commit is contained in:
Jascha Starke 2013-09-14 14:30:09 +02:00
parent db97f869d7
commit 57ad7aaa8d
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@ public class PlayerListener implements Listener {
this.mod = mod;
}
@EventHandler(priority=EventPriority.LOW, ignoreCancelled = true)
@EventHandler(priority=EventPriority.HIGH, ignoreCancelled = true)
public void onPlayerGameModeChange(PlayerGameModeChangeEvent event) {
boolean isLoggedIn = Hooks.IsLoggedIn.test(event.getPlayer());
if (mod.isDebug()) {

View file

@ -8,6 +8,7 @@ import org.bukkit.block.Block;
import org.bukkit.block.Sign;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerGameModeChangeEvent;
import org.bukkit.event.player.PlayerInteractEntityEvent;
@ -24,7 +25,7 @@ public class PlayerListener extends Listener {
super(mod);
}
@EventHandler(ignoreCancelled = true)
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getAction() != Action.RIGHT_CLICK_BLOCK)
return;