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