public class UUIDMigration
extends java.lang.Object
| Constructor and Description |
|---|
UUIDMigration(RegionDriver driver,
com.sk89q.worldguard.util.profile.resolver.ProfileService profileService,
FlagRegistry flagRegistry)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getKeepUnresolvedNames()
Get whether names that have no UUID equivalent (i.e.
|
void |
migrate()
Execute the migration.
|
protected void |
migrate(RegionDatabase store)
Called for all the worlds in the driver.
|
protected void |
postMigration()
Called after migration has successfully completed.
|
void |
setKeepUnresolvedNames(boolean keepUnresolvedNames)
Set whether names that have no UUID equivalent (i.e.
|
public UUIDMigration(RegionDriver driver, com.sk89q.worldguard.util.profile.resolver.ProfileService profileService, FlagRegistry flagRegistry)
driver - the storage driverprofileService - the profile serviceflagRegistry - the flag registryprotected void migrate(RegionDatabase store) throws MigrationException
store - the region storeMigrationException - on migration errorprotected void postMigration()
public boolean getKeepUnresolvedNames()
public void setKeepUnresolvedNames(boolean keepUnresolvedNames)
keepUnresolvedNames - true to keep namespublic final void migrate()
throws MigrationException
Migrationmigrate in interface MigrationMigrationException - thrown if the migration fails