Fix another SQL error

This commit is contained in:
Bea 2022-10-24 21:30:19 +02:00
parent ffcaf5e3cf
commit 47ce85a1ed
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,8 @@ import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import wtf.beatrice.nounspicker.NounsPicker;
import wtf.beatrice.nounspicker.commands.subcommands.NounsCreateSubCommand;
import wtf.beatrice.nounspicker.commands.subcommands.NounsDeleteSubCommand;
import wtf.beatrice.nounspicker.commands.subcommands.NounsSetSubCommand;
public class NounsCommand implements CommandExecutor
@ -33,6 +35,10 @@ public class NounsCommand implements CommandExecutor
{
case "set":
return NounsSetSubCommand.run(sender, args);
case "create":
return NounsCreateSubCommand.run(sender, args);
case "delete":
return NounsDeleteSubCommand.run(sender, args);
}

View File

@ -155,7 +155,7 @@ public class DatabaseManager
}
public int getHighestPronounId() {
String query = "SELECT id" +
String query = "SELECT id " +
"FROM pronouns " +
"ORDER BY id DESC " +
"LIMIT 1";