File tree Expand file tree Collapse file tree
src/main/kotlin/me/clip/voteparty/exte Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ fun helpMenu(issuer: CommandIssuer): Component
4242
4343fun recentMenu (issuer : CommandIssuer , recentVoters : RecentVoters ): Component
4444{
45- val mini = MiniMessage .get ()
45+ val mini = MiniMessage .miniMessage ()
4646 val builder = Component .text()
4747 val lineText = msgAsString(issuer, Messages .INFO__RECENT_VOTERS_LINE )
4848
4949 // Header
50- builder.append(mini.parse (msgAsString(issuer, Messages .INFO__RECENT_VOTERS_HEADING ))).append(Component .newline())
50+ builder.append(mini.deserialize (msgAsString(issuer, Messages .INFO__RECENT_VOTERS_HEADING ))).append(Component .newline())
5151
5252 // Data
5353 val currentTime = System .currentTimeMillis()
@@ -68,7 +68,7 @@ fun recentMenu(issuer: CommandIssuer, recentVoters: RecentVoters): Component
6868
6969 val updatedLine = lineText.replace(" {user}" , userStr)
7070 .replace(" {time}" , " %.2f" .format(timeDiffHours))
71- builder.append(mini.parse (updatedLine))
71+ builder.append(mini.deserialize (updatedLine))
7272 }
7373
7474 return builder.build()
You can’t perform that action at this time.
0 commit comments