mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Added setting Island.Levelling.ScanAutomatically
This commit is contained in:
parent
4e988d15dc
commit
55e2055907
@ -258,7 +258,9 @@ public class IslandManager {
|
||||
.setBiome(island, biome), 20L);
|
||||
|
||||
// Recalculate island level after 5 seconds
|
||||
if (fileManager.getConfig(new File(this.skyblock.getDataFolder(), "language.yml")).getFileConfiguration().getBoolean("Island.Levelling.ScanAutomatically")) {
|
||||
Bukkit.getServer().getScheduler().runTaskLater(skyblock, () -> skyblock.getLevellingManager().calculatePoints(null, island), 100L);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -811,8 +813,10 @@ public class IslandManager {
|
||||
pasteStructure(island, islandWorld);
|
||||
|
||||
// Recalculate island level after 5 seconds
|
||||
if (fileManager.getConfig(new File(this.skyblock.getDataFolder(), "language.yml")).getFileConfiguration().getBoolean("Island.Levelling.ScanAutomatically")) {
|
||||
Bukkit.getServer().getScheduler().runTaskLater(skyblock, () -> skyblock.getLevellingManager().calculatePoints(null, island), 100L);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if an island world is unlocked
|
||||
|
@ -174,6 +174,8 @@ Island:
|
||||
# time cycle or be fixed.
|
||||
Cycle: false
|
||||
Levelling:
|
||||
# Run a scan automatically when pasting an island structure
|
||||
ScanAutomatically: true
|
||||
# Include Points: 0 in the '/is level' GUI
|
||||
IncludeEmptyPointsInList: true
|
||||
# Island Level Points divided by value
|
||||
|
Loading…
Reference in New Issue
Block a user