vote_mute #2
|
|
@ -150,7 +150,7 @@ public class VoteToMuteHelper {
|
|||
}
|
||||
int highestLogEntry = max.get();
|
||||
|
||||
if (voteToMuteStarter.getTotalLogEntries() > highestLogEntry) {
|
||||
if (voteToMuteStarter.getTotalLogEntries() < highestLogEntry) {
|
||||
commandContext.getSource().sendMessage(Utility.parseMiniMessage("<red>Some of your selected messages do not exist.</red>"));
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class VoteToMuteStarter {
|
|||
private void parseChatLogs(List<ChatLog> chatLogs) {
|
||||
TagResolver.Single playerTag = Placeholder.parsed("player", votedPlayer.getUsername());
|
||||
TagResolver.Single prefixTag = Placeholder.component("prefix", prefix);
|
||||
chatLogs.sort(Comparator.comparing(ChatLog::getTimestamp));
|
||||
chatLogs.sort(Comparator.comparing(ChatLog::getTimestamp).reversed());
|
||||
parsedChatLogs = IntStream.range(0, chatLogs.size())
|
||||
.mapToObj(i -> Utility.parseMiniMessage(
|
||||
"<number>. <prefix> <player>: <message>",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user