Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41daebb629 | ||
|
|
b496e88557 |
No files matched your search
+5
-2
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user