mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Warn if treasures.yml is outdated.
This commit is contained in:
parent
17faf1561f
commit
957bbbc9b2
@ -73,6 +73,12 @@ public class TreasureConfig extends ConfigLoader {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void loadKeys() {
|
protected void loadKeys() {
|
||||||
|
if (config.getConfigurationSection("Treasures") != null) {
|
||||||
|
plugin.getLogger().warning("You are using an old version of the treasures.yml file.");
|
||||||
|
plugin.getLogger().warning("You should delete your current file and allow a new one to generate.");
|
||||||
|
plugin.getLogger().warning("Shake, Hylian Luck, Fishing, and Excavation will not work properly until you do.");
|
||||||
|
}
|
||||||
|
|
||||||
loadTreaures("Fishing");
|
loadTreaures("Fishing");
|
||||||
loadTreaures("Excavation");
|
loadTreaures("Excavation");
|
||||||
loadTreaures("Hylian");
|
loadTreaures("Hylian");
|
||||||
|
Loading…
Reference in New Issue
Block a user