mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
Fixed griefprevention
This commit is contained in:
parent
d994a483ac
commit
d6a36dce8a
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user