diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index 95819f9d8..daa14b962 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -412,6 +412,12 @@ public final class FlatfileDatabaseManager implements DatabaseManager { 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); }