mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-03 01:00:20 +01:00
- 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:
parent
c61584efb6
commit
e565e07c6a
@ -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:
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user