1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-16 19:44:15 +02:00

Missing event aborts in sign code.

This commit is contained in:
ementalo
2012-06-18 11:25:51 +01:00
parent 5545553345
commit 962d49517b
2 changed files with 15 additions and 0 deletions

View File

@@ -204,6 +204,11 @@ public class SignBlockListener implements Listener
@EventHandler(priority = EventPriority.LOW)
public void onBlockPistonExtend(final BlockPistonExtendEvent event)
{
if (plugin.getSettings().areSignsDisabled())
{
return;
}
for (Block block : event.getBlocks())
{
if (((block.getTypeId() == WALL_SIGN
@@ -229,6 +234,11 @@ public class SignBlockListener implements Listener
@EventHandler(priority = EventPriority.LOW)
public void onBlockPistonRetract(final BlockPistonRetractEvent event)
{
if (plugin.getSettings().areSignsDisabled())
{
return;
}
if (event.isSticky())
{
final Block block = event.getBlock();

View File

@@ -24,6 +24,11 @@ public class SignEntityListener implements Listener
@EventHandler(priority = EventPriority.LOW)
public void onEntityExplode(final EntityExplodeEvent event)
{
if (plugin.getSettings().areSignsDisabled())
{
return;
}
for (Block block : event.blockList())
{
if (((block.getTypeId() == Material.WALL_SIGN.getId()