diff --git a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsSetSubCommand.java b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsSetSubCommand.java index f24f440..b5c0aef 100644 --- a/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsSetSubCommand.java +++ b/src/main/java/wtf/beatrice/nounspicker/commands/subcommands/NounsSetSubCommand.java @@ -33,7 +33,7 @@ public class NounsSetSubCommand if(Cache.dbManager.setPlayerPronouns(sender.getName(), mainPronoun, secondaryPronoun)) { - + mainPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(mainPronoun)); secondaryPronoun = Cache.dbManager.getPronounFormat(Cache.dbManager.getPronounId(secondaryPronoun)); diff --git a/src/main/java/wtf/beatrice/nounspicker/utils/DatabaseManager.java b/src/main/java/wtf/beatrice/nounspicker/utils/DatabaseManager.java index c0c0fad..b643cfd 100644 --- a/src/main/java/wtf/beatrice/nounspicker/utils/DatabaseManager.java +++ b/src/main/java/wtf/beatrice/nounspicker/utils/DatabaseManager.java @@ -60,15 +60,15 @@ public class DatabaseManager List newTables = new ArrayList<>(); newTables.add("CREATE TABLE IF NOT EXISTS players (" + - "player text NOT NULL," + + "player TEXT NOT NULL," + "main_pronoun_id INTEGER DEFAULT -1," + "secondary_pronoun_id INTEGER DEFAULT -1" + ");"); newTables.add("CREATE TABLE IF NOT EXISTS pronouns (" + - "pronoun text," + - "format text," + - "\"id integer" + + "pronoun TEXT," + + "format TEXT," + + "id INTEGER" + ");"); for(String sql : newTables)