mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-13 10:11:26 +01:00
Moved scoreboard options to config.yml
This commit is contained in:
parent
cd70c7182b
commit
323afe7abb
@ -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);
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,3 @@
|
||||
Settings:
|
||||
Async: true
|
||||
Scoreboards:
|
||||
NoIsland:
|
||||
Title:
|
||||
|
Loading…
Reference in New Issue
Block a user