mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-27 10:57:43 +01:00
Added reloading to lootables.
This commit is contained in:
parent
f15bc9d6ba
commit
94cfe24ae2
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "UltimateStacker"
|
name: "UltimateStacker"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "1.6.1"
|
version: "1.6.2"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -228,6 +228,7 @@ public class UltimateStacker extends JavaPlugin {
|
|||||||
this.spawnerFile = new ConfigWrapper(this, "", "spawners.yml");
|
this.spawnerFile = new ConfigWrapper(this, "", "spawners.yml");
|
||||||
this.references = new References();
|
this.references = new References();
|
||||||
this.settingsManager.reloadConfig();
|
this.settingsManager.reloadConfig();
|
||||||
|
this.getLootManager().loadLootables();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean spawnersEnabled() {
|
public boolean spawnersEnabled() {
|
||||||
|
@ -96,6 +96,7 @@ public class LootManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void loadLootables() {
|
public void loadLootables() {
|
||||||
|
registeredLootables.clear();
|
||||||
File dir = new File(lootablesDir);
|
File dir = new File(lootablesDir);
|
||||||
File[] directoryListing = dir.listFiles();
|
File[] directoryListing = dir.listFiles();
|
||||||
if (directoryListing != null) {
|
if (directoryListing != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user