Added line breaks...
This commit is contained in:
parent
2dabfcbae9
commit
b28e7fd67f
1 changed files with 2 additions and 2 deletions
|
@ -39,10 +39,10 @@ public abstract class DiscordSenderBase implements IDiscordSender {
|
||||||
broadcasts.add(message);
|
broadcasts.add(message);
|
||||||
}
|
}
|
||||||
final String sendmsg = DiscordPlugin.sanitizeString(message);
|
final String sendmsg = DiscordPlugin.sanitizeString(message);
|
||||||
msgtosend += sendmsg;
|
msgtosend += "\n" + sendmsg;
|
||||||
if (sendtask == null)
|
if (sendtask == null)
|
||||||
sendtask = Bukkit.getScheduler().runTaskLaterAsynchronously(DiscordPlugin.plugin, () -> {
|
sendtask = Bukkit.getScheduler().runTaskLaterAsynchronously(DiscordPlugin.plugin, () -> {
|
||||||
DiscordPlugin.sendMessageToChannel(channel, (!broadcast ? user.mention() + "\n" : "") + msgtosend);
|
DiscordPlugin.sendMessageToChannel(channel, (!broadcast ? user.mention() + "\n" : "") + msgtosend.trim());
|
||||||
sendtask = null;
|
sendtask = null;
|
||||||
msgtosend = "";
|
msgtosend = "";
|
||||||
}, 10); // Waits a half second to gather all/most of the different messages
|
}, 10); // Waits a half second to gather all/most of the different messages
|
||||||
|
|
Loading…
Reference in a new issue