Fix playerdata migrator when using server context.

This commit is contained in:
bloodshot 2020-01-27 19:19:36 -05:00
parent 7a8183f061
commit 9b821609f6
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public abstract class BaseStorage {
public void initialize() throws Exception {
USE_GLOBAL_PLAYER_STORAGE = !GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.useWorldPlayerData();
if (GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.contextType.equalsIgnoreCase("global")) {
if (USE_GLOBAL_PLAYER_STORAGE) {
// migrate player data
PlayerDataMigrator.migrateGlobal();
}

View File

@ -95,7 +95,7 @@ public abstract class BaseStorage {
public void initialize() throws Exception {
USE_GLOBAL_PLAYER_STORAGE = !GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.useWorldPlayerData();
if (GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.contextType.equalsIgnoreCase("global")) {
if (USE_GLOBAL_PLAYER_STORAGE) {
// migrate player data
PlayerDataMigrator.migrateGlobal();
}