mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2025-02-03 05:01:25 +01:00
Build our bot asynchronously.
This commit is contained in:
parent
1ebc474bcf
commit
5d2bb066b8
@ -154,7 +154,7 @@ public final class PurpleBot {
|
||||
String joinNoticeMessage;
|
||||
String version;
|
||||
String finger;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param file
|
||||
@ -208,7 +208,14 @@ public final class PurpleBot {
|
||||
version = plugin.getDescription().getFullName() + ", "
|
||||
+ plugin.getDescription().getDescription() + " - "
|
||||
+ plugin.getDescription().getWebsite();
|
||||
buildBot();
|
||||
|
||||
plugin.getServer().getScheduler().runTaskAsynchronously(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
buildBot();
|
||||
}
|
||||
});
|
||||
|
||||
messageQueue = new IRCMessageQueueWatcher(this, plugin);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user