mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-30 00:27:26 +02:00
Missing event aborts in sign code.
This commit is contained in:
parent
3b855255cf
commit
dd7f1bcf25
@ -199,6 +199,11 @@ public class SignBlockListener implements Listener
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void onBlockPistonExtend(final BlockPistonExtendEvent event)
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (Block block : event.getBlocks())
|
||||
{
|
||||
if (((block.getTypeId() == WALL_SIGN
|
||||
@ -224,6 +229,11 @@ public class SignBlockListener implements Listener
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void onBlockPistonRetract(final BlockPistonRetractEvent event)
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.isSticky())
|
||||
{
|
||||
final Block block = event.getBlock();
|
||||
|
@ -22,6 +22,11 @@ public class SignEntityListener implements Listener
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void onEntityExplode(final EntityExplodeEvent event)
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (Block block : event.blockList())
|
||||
{
|
||||
if (((block.getTypeId() == Material.WALL_SIGN.getId()
|
||||
|
Loading…
Reference in New Issue
Block a user