Skip to content

Commit

Permalink
修复无限重连问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdoeswhat committed Mar 7, 2022
1 parent 559c110 commit 3d324e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>me.albert</groupId>
<artifactId>AmazingBot</artifactId>
<packaging>jar</packaging>
<version>4.0.2</version>
<version>4.0.3</version>
<name>AmazingBot</name>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: AmazingBot
version: 4.0.2
version: 4.0.3
author: Albert
main: me.albert.amazingbot.AmazingBot
api-version: 1.13
Expand Down
2 changes: 2 additions & 0 deletions src/me/albert/amazingbot/bot/Bot.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.albert.amazingbot.bot;

import me.albert.amazingbot.AmazingBot;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;

import java.net.URI;
Expand Down Expand Up @@ -31,6 +32,7 @@ public static void start() {
}

public static void stop() {
Bukkit.getScheduler().cancelTask(client.taskID);
client.close();
}

Expand Down
2 changes: 1 addition & 1 deletion src/me/albert/amazingbot/listeners/OnCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void onCommand(GroupMessageEvent e) {
String log = AmazingBot.getInstance().getConfig().getString("messages.log_command")
.replace("%user%", String.valueOf(e.getUserID())).replace("%cmd%", cmd)
.replace("&", "§");
Bukkit.getLogger().info(log);
AmazingBot.getInstance().getLogger().info(log);
});
}

Expand Down

0 comments on commit 3d324e3

Please sign in to comment.