Added option to ignore the island center block from limits.
Should help with AOneBlock usage.
This commit is contained in:
parent
945aae0d8b
commit
328a1a13f7
|
@ -329,6 +329,10 @@ public class BlockLimitsListener implements Listener {
|
||||||
// Invalid world
|
// Invalid world
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
// Ignore the center block - usually bedrock, but for AOneBlock it's the magic block
|
||||||
|
if (addon.getConfig().getBoolean("ignore-center-block", true) && i.getCenter().equals(b.getLocation())) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
islandCountMap.putIfAbsent(id, new IslandBlockCount(id, gameMode));
|
islandCountMap.putIfAbsent(id, new IslandBlockCount(id, gameMode));
|
||||||
if (add) {
|
if (add) {
|
||||||
// Check limit
|
// Check limit
|
||||||
|
|
|
@ -4,6 +4,10 @@ gamemodes:
|
||||||
- BSkyBlock
|
- BSkyBlock
|
||||||
- CaveBlock
|
- CaveBlock
|
||||||
|
|
||||||
|
# Ignore this island's center block. For most worlds, this is bedrock, but for AOneBlock it is
|
||||||
|
# the magic block, so ignoring it from limits makes sense.
|
||||||
|
ignore-center-block: true
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
# Island owners can be given permissions that override all general settings
|
# Island owners can be given permissions that override all general settings
|
||||||
# Format is GAME-MODE-NAME.island.limit.MATERIAL.LIMIT
|
# Format is GAME-MODE-NAME.island.limit.MATERIAL.LIMIT
|
||||||
|
|
Loading…
Reference in New Issue