mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Change formatting system to use MineDown (https://github.com/Phoenix616/MineDown)
Rename huskHomes1Migrator.java class to legacyVersionMigrator.java Increment version number to 2.1.0
This commit is contained in:
1 parent
8559bd6161
commit
96cc08d71b
9 files changed
+284
-223
No files matched your search
@@ -7,7 +7,7 @@ import me.william278.huskhomes2.Events.onPlayerDeath;
|
||||
import me.william278.huskhomes2.Events.onPlayerJoin;
|
||||
import me.william278.huskhomes2.Integrations.dynamicMap;
|
||||
import me.william278.huskhomes2.Integrations.economy;
|
||||
import me.william278.huskhomes2.Migrators.huskHomes1Migrator;
|
||||
import me.william278.huskhomes2.Migrators.legacyVersionMigrator;
|
||||
import me.william278.huskhomes2.Objects.Settings;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@@ -120,14 +120,14 @@ public final class HuskHomes extends JavaPlugin {
|
||||
getLogger().info(versionChecker.getVersionCheckString());
|
||||
|
||||
// MIGRATION: Check if a migration needs to occur
|
||||
huskHomes1Migrator.checkStartupMigration();
|
||||
legacyVersionMigrator.checkStartupMigration();
|
||||
|
||||
// Load the config
|
||||
configManager.loadConfig();
|
||||
|
||||
// MIGRATION: Migrate config files
|
||||
if (huskHomes1Migrator.startupMigrate) {
|
||||
new huskHomes1Migrator().migrateConfig();
|
||||
if (legacyVersionMigrator.startupMigrate) {
|
||||
new legacyVersionMigrator().migrateConfig();
|
||||
}
|
||||
|
||||
// Load the messages (in the right language)
|
||||
@@ -140,9 +140,9 @@ public final class HuskHomes extends JavaPlugin {
|
||||
dataManager.setupStorage();
|
||||
|
||||
// MIGRATION: Migrate SQL data
|
||||
if (huskHomes1Migrator.startupMigrate) {
|
||||
new huskHomes1Migrator().migratePlayerData();
|
||||
new huskHomes1Migrator().migrateHomeData();
|
||||
if (legacyVersionMigrator.startupMigrate) {
|
||||
new legacyVersionMigrator().migratePlayerData();
|
||||
new legacyVersionMigrator().migrateHomeData();
|
||||
}
|
||||
|
||||
// Setup the Dynmap integration if it is enabled
|
||||
|
||||
Reference in new issue
Block a user