Updated dependencies and added support for fireball item blocking (id 385).

This commit is contained in:
TomyLobo 2012-06-07 13:26:28 +02:00
parent 18b5a4e106
commit a98ebfdb21
2 changed files with 3 additions and 3 deletions

View File

@ -40,14 +40,14 @@
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId>
<version>5.3</version>
<version>5.4-SNAPSHOT</version>
</dependency>
<!-- Bukkit -->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.2.5-R1.2-SNAPSHOT</version>
<version>1.2.5-R3.1-SNAPSHOT</version>
</dependency>
<!-- CommandBook -->

View File

@ -297,7 +297,7 @@ public void onBlockIgnite(BlockIgniteEvent event) {
return;
}
if (wcfg.blockLighter && cause == IgniteCause.FLINT_AND_STEEL
if (wcfg.blockLighter && (cause == IgniteCause.FLINT_AND_STEEL || cause == IgniteCause.FIREBALL)
&& event.getPlayer() != null
&& !plugin.hasPermission(event.getPlayer(), "worldguard.override.lighter")) {
event.setCancelled(true);