Made the array of messages send as one

This commit is contained in:
Norbi Peti 2016-11-28 19:50:44 +01:00
parent 276ab40760
commit 4f2c33add7

View file

@ -1,6 +1,8 @@
package buttondevteam.discordplugin;
import java.util.Arrays;
import java.util.Set;
import java.util.stream.Collectors;
import org.bukkit.Bukkit;
import org.bukkit.Server;
@ -107,8 +109,7 @@ public class DiscordSender implements CommandSender {
@Override
public void sendMessage(String[] messages) {
for (String message : messages)
sendMessage(message);
sendMessage(Arrays.stream(messages).collect(Collectors.joining("\n")));
}
@Override