- fixed loading of configuration if a String value is missing

- don't count placing air in air in airbuild check
This commit is contained in:
Evenprime 2011-05-25 22:12:45 +02:00
parent c61584efb6
commit e565e07c6a
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 1.01 version: 1.01a
commands: commands:
nocheat: nocheat:

View File

@ -44,7 +44,7 @@ public class AirbuildCheck extends Check {
if(skipCheck(event.getPlayer())) return; if(skipCheck(event.getPlayer())) return;
// Are all 6 sides "air-blocks" -> cancel the event // Are all 6 sides "air-blocks" -> cancel the event
if(event.getBlockAgainst().getType() == Material.AIR) { if( event.getBlockAgainst().getType() == Material.AIR && event.getBlockPlaced().getType() != Material.AIR ) {
final AirbuildData data = AirbuildData.get(event.getPlayer()); final AirbuildData data = AirbuildData.get(event.getPlayer());
final Player p = event.getPlayer(); final Player p = event.getPlayer();