Fixed griefprevention

This commit is contained in:
The_Creeper_Cow 2018-10-22 15:46:06 +02:00
parent d994a483ac
commit d6a36dce8a

View File

@ -24,7 +24,7 @@ public class HookGriefPrevention implements ProtectionPluginHook {
@Override
public boolean canBuild(Player player, Location location) {
Claim claim = griefPrevention.dataStore.getClaimAt(location, false, null);
return claim != null && claim.allowBuild(player, Material.STONE) == null;
return claim != null && claim.allowBuild(player, Material.SPAWNER) == null;
}
}