Skip to content

Commit 5007f9d

Browse files
committed
Fixed MySQL create query not working
Removed myself from PrefixCommand allowed users
1 parent 7c61896 commit 5007f9d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = 'at.helpch'
10-
version = '1.1.0'
10+
version = '1.1.1'
1111
mainClassName = 'at.helpch.papibot.PapiBotBootstrap'
1212
sourceCompatibility = 1.8
1313
targetCompatibility = 1.8

src/main/java/at/helpch/papibot/commands/PrefixCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public PrefixCommand() {
1717

1818
@Override
1919
protected void execute(GuildMessageReceivedEvent e, String[] args) {
20-
if (e.getMember() == e.getGuild().getOwner() || e.getAuthor().getIdLong() == 181675431362035712L) {
20+
if (e.getMember() == e.getGuild().getOwner()) {
2121
if (args.length >= 1) {
2222
ServerUtils.setPrefix(e.getGuild().getIdLong(), args[0]);
2323
e.getChannel().sendMessage(e.getAuthor().getAsMention() + " :white_check_mark: **Prefix successfully set to `" + args[0] + "`.**").queue(s -> s.delete().queueAfter(15, TimeUnit.SECONDS));

src/main/java/at/helpch/papibot/core/utils/mysql/ServerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public final class ServerUtils {
1111
public static void addServer(long guildId) {
1212
Task.async(r -> {
1313
try {
14-
DB.executeInsert("INSERT INTO `papibot_servers` (`id`, `guild_id`, `prefix) VALUES ('0', ?, ?);", guildId, "?papi");
14+
DB.executeInsert("INSERT INTO `papibot_servers` (`id`, `guild_id`, `prefix`) VALUES ('0', ?, ?);", guildId, "?papi");
1515
} catch (Exception e) {
1616
e.printStackTrace();
1717
}

0 commit comments

Comments
 (0)