mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-02-27 03:41:46 +01:00
Fix playerdata migrator when using server context.
This commit is contained in:
parent
7a8183f061
commit
9b821609f6
@ -97,7 +97,7 @@ public abstract class BaseStorage {
|
|||||||
|
|
||||||
public void initialize() throws Exception {
|
public void initialize() throws Exception {
|
||||||
USE_GLOBAL_PLAYER_STORAGE = !GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.useWorldPlayerData();
|
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
|
// migrate player data
|
||||||
PlayerDataMigrator.migrateGlobal();
|
PlayerDataMigrator.migrateGlobal();
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ public abstract class BaseStorage {
|
|||||||
|
|
||||||
public void initialize() throws Exception {
|
public void initialize() throws Exception {
|
||||||
USE_GLOBAL_PLAYER_STORAGE = !GriefDefenderPlugin.getGlobalConfig().getConfig().playerdata.useWorldPlayerData();
|
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
|
// migrate player data
|
||||||
PlayerDataMigrator.migrateGlobal();
|
PlayerDataMigrator.migrateGlobal();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user