Skip to content

Commit

Permalink
Fixed MySQL create query not working
Browse files Browse the repository at this point in the history
Removed myself from PrefixCommand allowed users
  • Loading branch information
PiggyPiglet committed Nov 11, 2018
1 parent 7c61896 commit 5007f9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'at.helpch'
version = '1.1.0'
version = '1.1.1'
mainClassName = 'at.helpch.papibot.PapiBotBootstrap'
sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public PrefixCommand() {

@Override
protected void execute(GuildMessageReceivedEvent e, String[] args) {
if (e.getMember() == e.getGuild().getOwner() || e.getAuthor().getIdLong() == 181675431362035712L) {
if (e.getMember() == e.getGuild().getOwner()) {
if (args.length >= 1) {
ServerUtils.setPrefix(e.getGuild().getIdLong(), args[0]);
e.getChannel().sendMessage(e.getAuthor().getAsMention() + " :white_check_mark: **Prefix successfully set to `" + args[0] + "`.**").queue(s -> s.delete().queueAfter(15, TimeUnit.SECONDS));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class ServerUtils {
public static void addServer(long guildId) {
Task.async(r -> {
try {
DB.executeInsert("INSERT INTO `papibot_servers` (`id`, `guild_id`, `prefix) VALUES ('0', ?, ?);", guildId, "?papi");
DB.executeInsert("INSERT INTO `papibot_servers` (`id`, `guild_id`, `prefix`) VALUES ('0', ?, ?);", guildId, "?papi");
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 5007f9d

Please sign in to comment.