Compare commits

...
2 Commits
Author SHA1 Message Date
sk89q 41daebb629 Updated changelog. 2010-12-26 10:32:31 -08:00
sk89q b496e88557 Fixed NullPointerException in WorldGuardListener.onSignChange(). 2010-12-26 10:31:54 -08:00
2 changed files with 13 additions and 8 deletions

No files matched your search

+5 -2
View File
@@ -1,4 +1,7 @@
1.8:
1.8.1
- Fixed NullPointerException.
1.8
- Updated for Minecraft beta.
- Blacklist hooks have CHANGED. The new hooks are work better. on-create has
been replaced with on-place (for block placement) and on-use
@@ -7,7 +10,7 @@
- Added coordinates to blacklist file logger.
- Added suffocation damage prevention.
1.7.1:
1.7.1
- Updated for v0.2.8.
1.7
+8 -6
View File
@@ -756,13 +756,15 @@ public class WorldGuardListener extends PluginListener {
* @return true if you wish to cancel this change
*/
public boolean onSignChange(Player player, Sign sign) {
int id = etc.getServer().getBlockIdAt(sign.getX(),
sign.getY(), sign.getZ());
Block block = new Block(id, sign.getX(),
sign.getY(), sign.getZ());
if (blacklist != null) {
int id = etc.getServer().getBlockIdAt(sign.getX(),
sign.getY(), sign.getZ());
Block block = new Block(id, sign.getX(),
sign.getY(), sign.getZ());
if (!blacklist.onSilentUse(block, player)) {
return true;
if (!blacklist.onSilentUse(block, player)) {
return true;
}
}
return false;