summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java
index 69b84af4..4d0de3d4 100644
--- a/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java
+++ b/sample/src/com/dinnerbone/bukkit/sample/SamplePlugin.java
@@ -41,6 +41,7 @@ public class SamplePlugin extends JavaPlugin {
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND, playerListener, Priority.Normal, this);
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_MOVE, playerListener, Priority.Normal, this);
getServer().getPluginManager().registerEvent(Event.Type.BLOCK_PHYSICS, blockListener, Priority.Normal, this);
+ getServer().getPluginManager().registerEvent(Event.Type.BLOCK_CANBUILD, blockListener, Priority.Normal, this);
}
public boolean isDebugging(final Player player) {