Added automatic plugin updater and a few smaller changes #21
1 changed files with 2 additions and 2 deletions
|
@ -208,8 +208,8 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
|
|||
e2.printStackTrace();
|
||||
}
|
||||
try {
|
||||
return channel
|
||||
.sendMessage(Test ? "*The following message is from a test server*\n" + message : message);
|
||||
return channel.sendMessage(Test && channel != chatchannel
|
||||
? "*The following message is from a test server*\n" + message : message);
|
||||
} catch (RateLimitException e) {
|
||||
try {
|
||||
Thread.sleep(e.getRetryDelay());
|
||||
|
|
Loading…
Reference in a new issue