Don't double color the inbox

This commit is contained in:
NotMyFault 2021-04-30 13:22:00 +02:00
parent 1750dd3b97
commit 812442fbbc
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -147,15 +147,9 @@ public class Inbox extends SubCommand {
}
}
if (total != 0) {
String color;
if (unread > 0) {
color = "&c";
} else {
color = "";
}
player.sendMessage(
TranslatableCaption.of("comment.inbox_item"),
Template.of("value", color + inbox.toString() + " (" + total + '/' + unread + ')')
Template.of("value", inbox.toString() + " (" + total + '/' + unread + ')')
);
return;
}