mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-28 13:15:23 +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 {
|
||||
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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user