Moved scoreboard options to config.yml

This commit is contained in:
Fabrizio La Rosa 2020-08-04 21:52:29 +02:00
parent cd70c7182b
commit 323afe7abb
3 changed files with 5 additions and 5 deletions

View File

@ -122,11 +122,11 @@ public class ScoreboardManager extends Manager {
private void newDriver(ScoreboardType board) {
FileManager fileManager = plugin.getFileManager();
FileConfiguration scoreboardLoad = fileManager.getConfig(
new File(plugin.getDataFolder(), "scoreboard.yml")).getFileConfiguration();
FileConfiguration configload = fileManager.getConfig(
new File(plugin.getDataFolder(), "config.yml")).getFileConfiguration();
Driver driver = new Driver(plugin, board);
if(scoreboardLoad.getBoolean("Settings.Async", true)) {
if(configload.getBoolean("Island.Scoreboard.Async", true)) {
driver.runTaskTimerAsynchronously(plugin, 1L, 1L);
} else {
driver.runTaskTimer(plugin, 1L, 1L);

View File

@ -328,6 +328,8 @@ Island:
Selector: "DIAMOND_AXE"
Scoreboard:
Enable: true
# Set it to false if you notice some visual problems.
Async: true
Generator:
Enable: true
# Check only the island owner's permissions

View File

@ -1,5 +1,3 @@
Settings:
Async: true
Scoreboards:
NoIsland:
Title: