- added Enchantment-Tables to blockbenches

This commit is contained in:
Jascha Starke 2013-01-18 09:00:04 +01:00
parent c85a541b92
commit 8afab9c603
2 changed files with 10 additions and 4 deletions

12
pom.xml
View file

@ -84,32 +84,38 @@
<version>1.4.6-R0.1</version> <version>1.4.6-R0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dl.bukkit.org/ -->
<groupId>org.bukkit</groupId> <groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId> <artifactId>craftbukkit</artifactId>
<version>1.4.6-R0.1</version> <version>1.4.6-R0.1</version>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dev.bukkit.org/server-mods/worldedit/ -->
<groupId>com.sk89q</groupId> <groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId> <artifactId>worldedit</artifactId>
<version>5.4.5</version> <version>5.5</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dev.bukkit.org/server-mods/worldguard/ -->
<groupId>com.sk89q</groupId> <groupId>com.sk89q</groupId>
<artifactId>worldguard</artifactId> <artifactId>worldguard</artifactId>
<version>5.6.6-SNAPSHOT</version> <version>5.7</version>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dev.bukkit.org/server-mods/authme-reloaded/ -->
<groupId>uk.org.whoami</groupId> <groupId>uk.org.whoami</groupId>
<artifactId>authme</artifactId> <artifactId>authme</artifactId>
<version>2.7.1</version> <version>2.7.2</version>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dev.bukkit.org/server-mods/multiverse-core/ -->
<groupId>com.onarandombox.multiversecore</groupId> <groupId>com.onarandombox.multiversecore</groupId>
<artifactId>Multiverse-Core</artifactId> <artifactId>Multiverse-Core</artifactId>
<version>2.4</version> <version>2.4</version>
</dependency> </dependency>
<dependency> <dependency>
<!-- http://dev.bukkit.org/server-mods/xauth/ -->
<groupId>com.cypherx</groupId> <groupId>com.cypherx</groupId>
<artifactId>xauth</artifactId> <artifactId>xauth</artifactId>
<version>2.0.26</version> <version>2.0.26</version>

View file

@ -99,7 +99,7 @@ public class LimitListener implements Listener {
player.onSignAccess(event); player.onSignAccess(event);
} else if (block.getState() instanceof Lever || block.getState() instanceof Button) { } else if (block.getState() instanceof Lever || block.getState() instanceof Button) {
player.onButtonAccess(event); player.onButtonAccess(event);
} else if (block.getType() == Material.WORKBENCH || block.getType() == Material.ANVIL) { } else if (block.getType() == Material.WORKBENCH || block.getType() == Material.ANVIL || block.getType() == Material.ENCHANTMENT_TABLE) {
player.onBenchAccess(event); player.onBenchAccess(event);
} }
} }