Added reloading to lootables.

This commit is contained in:
Brianna 2019-07-09 15:21:42 -04:00
parent f15bc9d6ba
commit 94cfe24ae2
3 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "UltimateStacker"
path: "/builds/$CI_PROJECT_PATH"
version: "1.6.1"
version: "1.6.2"
build:
stage: build

View File

@ -228,6 +228,7 @@ public class UltimateStacker extends JavaPlugin {
this.spawnerFile = new ConfigWrapper(this, "", "spawners.yml");
this.references = new References();
this.settingsManager.reloadConfig();
this.getLootManager().loadLootables();
}
public boolean spawnersEnabled() {

View File

@ -96,6 +96,7 @@ public class LootManager {
}
public void loadLootables() {
registeredLootables.clear();
File dir = new File(lootablesDir);
File[] directoryListing = dir.listFiles();
if (directoryListing != null) {