This commit is contained in:
boy0001 2015-03-31 16:51:48 +11:00
parent 1c0c28f5b1
commit fffead4a16

View File

@ -171,11 +171,9 @@ public class Inbox extends SubCommand {
} else { } else {
final List<String> recipients = Arrays.asList("A", "O", "H", "T", "E"); final List<String> recipients = Arrays.asList("A", "O", "H", "T", "E");
int count = 1; int count = 1;
final StringBuilder message = new StringBuilder(C.COMMENT_HEADER.s()+"\n"); final StringBuilder message = new StringBuilder(C.COMMENT_HEADER.s());
String prefix = "";
for (final PlotComment comment : comments) { for (final PlotComment comment : comments) {
message.append(prefix).append("&c[").append(count).append("]&6[").append(recipients.get(tier2 == -1 ? 0 : tier2)).append("] &7").append(comment.senderName).append("&f: ").append(comment.comment); message.append("\n&8[&7" + comment.id + "&8]" + "&c[" + count + "]&6[" + recipients.get(tier2 == -1 ? 0 : tier2) + "] &7" + comment.senderName + "&f: " + comment.comment);
prefix = "\n" + comment.id;
count++; count++;
} }
if (comments.size() == 0) { if (comments.size() == 0) {