Added automatic plugin updater and a few smaller changes #21

Merged
NorbiPeti merged 11 commits from dev into master 2016-12-22 22:37:25 +00:00
Showing only changes of commit 03540b430c - Show all commits

View file

@ -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());