diff --git a/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java b/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java index a3eb4e939..5df746e87 100644 --- a/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/database/MmoupdateCommand.java @@ -38,10 +38,10 @@ public class MmoupdateCommand implements TabExecutor { } DatabaseManager oldDb; - if (oldType == "sql") { + if (oldType.equals("sql")) { oldDb = DatabaseManagerFactory.createSQLDatabaseManager(); } - else if (oldType == "flatfile") { + else if (oldType.equals("flatfile")) { oldDb = DatabaseManagerFactory.createFlatfileDatabaseManager(); } else try {