Remove unneccessary check in EnginePermBuild
This commit is contained in:
parent
01f0c7cd1e
commit
8500b7bcfa
@ -26,7 +26,6 @@ import org.bukkit.event.EventHandler;
|
|||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.block.BlockBreakEvent;
|
import org.bukkit.event.block.BlockBreakEvent;
|
||||||
import org.bukkit.event.block.BlockDamageEvent;
|
|
||||||
import org.bukkit.event.block.BlockFromToEvent;
|
import org.bukkit.event.block.BlockFromToEvent;
|
||||||
import org.bukkit.event.block.BlockPistonExtendEvent;
|
import org.bukkit.event.block.BlockPistonExtendEvent;
|
||||||
import org.bukkit.event.block.BlockPistonRetractEvent;
|
import org.bukkit.event.block.BlockPistonRetractEvent;
|
||||||
@ -139,9 +138,6 @@ public class EnginePermBuild extends Engine
|
|||||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void build(BlockBreakEvent event) { build(event.getPlayer(), event.getBlock(), event); }
|
public void build(BlockBreakEvent event) { build(event.getPlayer(), event.getBlock(), event); }
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
|
||||||
public void build(BlockDamageEvent event) { build(event.getPlayer(), event.getBlock(), event); }
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void build(SignChangeEvent event) { build(event.getPlayer(), event.getBlock(), event); }
|
public void build(SignChangeEvent event) { build(event.getPlayer(), event.getBlock(), event); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user