mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 18:37:43 +01:00
Added reloading to lootables.
This commit is contained in:
parent
f15bc9d6ba
commit
94cfe24ae2
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateStacker"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.6.1"
|
||||
version: "1.6.2"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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() {
|
||||
|
@ -96,6 +96,7 @@ public class LootManager {
|
||||
}
|
||||
|
||||
public void loadLootables() {
|
||||
registeredLootables.clear();
|
||||
File dir = new File(lootablesDir);
|
||||
File[] directoryListing = dir.listFiles();
|
||||
if (directoryListing != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user