mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-10-03 01:57:30 +02:00
Why do letters have to have a cAsE?
This commit is contained in:
parent
c25205f61c
commit
d6f046a4fc
@ -59,7 +59,7 @@ public class MVConfigMigrator {
|
|||||||
private boolean migrateWorlds(String name, File oldFolder, File newFolder) {
|
private boolean migrateWorlds(String name, File oldFolder, File newFolder) {
|
||||||
Configuration newConfig = new Configuration(new File(newFolder, "worlds.yml"));
|
Configuration newConfig = new Configuration(new File(newFolder, "worlds.yml"));
|
||||||
this.core.log(Level.INFO, "Trying to migrate worlds.yml...");
|
this.core.log(Level.INFO, "Trying to migrate worlds.yml...");
|
||||||
Configuration oldConfig = new Configuration(new File(oldFolder, "worlds.yml"));
|
Configuration oldConfig = new Configuration(new File(oldFolder, "Worlds.yml"));
|
||||||
oldConfig.load();
|
oldConfig.load();
|
||||||
List<String> keys = oldConfig.getKeys("worlds");
|
List<String> keys = oldConfig.getKeys("worlds");
|
||||||
if (keys == null) {
|
if (keys == null) {
|
||||||
|
@ -79,8 +79,8 @@ public class MultiverseCore extends JavaPlugin {
|
|||||||
// Setup our Debug Log
|
// Setup our Debug Log
|
||||||
debugLog = new DebugLog("Multiverse-Core", getDataFolder() + File.separator + "debug.log");
|
debugLog = new DebugLog("Multiverse-Core", getDataFolder() + File.separator + "debug.log");
|
||||||
|
|
||||||
// Setup & Load our Configuration files.
|
|
||||||
loadConfigs();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
@ -108,7 +108,10 @@ public class MultiverseCore extends JavaPlugin {
|
|||||||
// Call the Function to load all the Worlds and setup the HashMap
|
// Call the Function to load all the Worlds and setup the HashMap
|
||||||
// When called with null, it tries to load ALL
|
// When called with null, it tries to load ALL
|
||||||
// this function will be called every time a plugin registers a new envtype with MV
|
// this function will be called every time a plugin registers a new envtype with MV
|
||||||
|
// Setup & Load our Configuration files.
|
||||||
|
loadConfigs();
|
||||||
if (this.configMV != null) {
|
if (this.configMV != null) {
|
||||||
|
|
||||||
this.loadWorlds(true);
|
this.loadWorlds(true);
|
||||||
} else {
|
} else {
|
||||||
this.log(Level.WARNING, "Your configs were not loaded. Very little will function in MV.");
|
this.log(Level.WARNING, "Your configs were not loaded. Very little will function in MV.");
|
||||||
|
Loading…
Reference in New Issue
Block a user