Makes sure to only use the file helper after settings have been loaded

This commit is contained in:
Kristian Knarvik 2021-09-04 22:44:40 +02:00
parent ef3815f91a
commit a009430ba0

View File

@ -120,9 +120,9 @@ public class BooksWithoutBorders extends JavaPlugin {
booksWithoutBorders = this;
consoleSender = this.getServer().getConsoleSender();
playerBooksList = new HashMap<>();
publicBooksList = FileHelper.listFiles(consoleSender, true);
firstBooks = new ArrayList<>();
BooksWithoutBordersSettings.initialize(this);
publicBooksList = FileHelper.listFiles(consoleSender, true);
PluginManager pluginManager = this.getServer().getPluginManager();