Package net.william278.huskhomes.util
Class BukkitUpgradeUtil
java.lang.Object
net.william278.huskhomes.util.BukkitUpgradeUtil
Utility class for upgrading important stuff from HuskHomes v2.x config files to v3.x.
-
Field Summary
Modifier and TypeFieldDescriptionnet.william278.huskhomes.config.Settings.DatabaseType
int
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BukkitUpgradeUtil
detect(@NotNull BukkitHuskHomes plugin)
void
upgradeSettings(@NotNull net.william278.huskhomes.config.Settings settings)
Upgrade the config from an older version to the current version.
-
Field Details
-
databaseType
public net.william278.huskhomes.config.Settings.DatabaseType databaseType -
mySqlHost
-
mySqlPort
public int mySqlPort -
mySqlDatabase
-
mySqlUsername
-
mySqlPassword
-
mySqlParams
-
sourcePlayerDataTable
-
sourceLocationsDataTable
-
sourceHomesDataTable
-
sourceWarpsDataTable
-
-
Method Details
-
upgradeSettings
public void upgradeSettings(@NotNull @NotNull net.william278.huskhomes.config.Settings settings)Upgrade the config from an older version to the current version.- Parameters:
settings
- The settings to upgrade
-
detect
@Nullable public static @Nullable BukkitUpgradeUtil detect(@NotNull @NotNull BukkitHuskHomes plugin)
-