Fix lobby potion stuff.
This commit is contained in:
@@ -848,8 +848,7 @@ public class ArenaListener
|
|||||||
|
|
||||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||||
Player p = event.getPlayer();
|
Player p = event.getPlayer();
|
||||||
if (arena.inArena(p) || !arena.inLobby(p))
|
if (!arena.inLobby(p)) return;
|
||||||
return;
|
|
||||||
|
|
||||||
// Player is in the lobby, so disallow using items.
|
// Player is in the lobby, so disallow using items.
|
||||||
Action a = event.getAction();
|
Action a = event.getAction();
|
||||||
@@ -868,9 +867,6 @@ public class ArenaListener
|
|||||||
}
|
}
|
||||||
// Sign
|
// Sign
|
||||||
else if (event.getClickedBlock().getState() instanceof Sign) {
|
else if (event.getClickedBlock().getState() instanceof Sign) {
|
||||||
// Make sure to allow clicking signs
|
|
||||||
event.setCancelled(false);
|
|
||||||
|
|
||||||
Sign sign = (Sign) event.getClickedBlock().getState();
|
Sign sign = (Sign) event.getClickedBlock().getState();
|
||||||
handleSign(sign, p);
|
handleSign(sign, p);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,8 @@ public class MAGlobalListener implements Listener
|
|||||||
arena.getEventListener().onPlayerDropItem(event);
|
arena.getEventListener().onPlayerDropItem(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
// HIGHEST => after SignShop
|
||||||
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void playerInteract(PlayerInteractEvent event) {
|
public void playerInteract(PlayerInteractEvent event) {
|
||||||
if (!am.isEnabled()) return;
|
if (!am.isEnabled()) return;
|
||||||
for (Arena arena : am.getArenas())
|
for (Arena arena : am.getArenas())
|
||||||
|
|||||||
Reference in New Issue
Block a user