mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-01 17:36:46 +01:00
Update playername in database when a name changes
This commit is contained in:
parent
792f21bc20
commit
072e7c8b19
@ -412,6 +412,12 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update playerName in database after name change
|
||||||
|
if (!character[0].equalsIgnoreCase(playerName)) {
|
||||||
|
mcMMO.p.debug("Name change detected: " + character[0] + " => " + playerName);
|
||||||
|
character[0] = playerName;
|
||||||
|
}
|
||||||
|
|
||||||
return loadFromLine(character);
|
return loadFromLine(character);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user