Fix another SQL error
This commit is contained in:
parent
ffcaf5e3cf
commit
47ce85a1ed
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user