|
9 | 9 | import me.hsgamer.bettergui.downloader.AdditionalInfoKeys; |
10 | 10 | import me.hsgamer.bettergui.downloader.AddonDownloader; |
11 | 11 | import me.hsgamer.bettergui.manager.AddonManager; |
12 | | -import me.hsgamer.bettergui.util.StringReplacerApplier; |
13 | 12 | import me.hsgamer.hscore.bukkit.utils.MessageUtils; |
14 | 13 | import me.hsgamer.hscore.common.MapUtils; |
15 | 14 | import me.hsgamer.hscore.config.Config; |
@@ -91,15 +90,12 @@ private class AddonButton implements Button, Element { |
91 | 90 |
|
92 | 91 | AddonButton(DownloadInfo downloadInfo) { |
93 | 92 | this.downloadInfo = downloadInfo; |
94 | | - this.translator = s -> { |
95 | | - s = s |
96 | | - .replace("{status}", status) |
97 | | - .replace("{name}", downloadInfo.getName()) |
98 | | - .replace("{version}", downloadInfo.getVersion()) |
99 | | - .replace("{description}", AdditionalInfoKeys.DESCRIPTION.get(downloadInfo)) |
100 | | - .replace("{author}", AdditionalInfoKeys.AUTHORS.get(downloadInfo).toString()); |
101 | | - return StringReplacerApplier.COLORIZE.replace(s); |
102 | | - }; |
| 93 | + this.translator = s -> s |
| 94 | + .replace("{status}", status) |
| 95 | + .replace("{name}", downloadInfo.getName()) |
| 96 | + .replace("{version}", downloadInfo.getVersion()) |
| 97 | + .replace("{description}", AdditionalInfoKeys.DESCRIPTION.get(downloadInfo)) |
| 98 | + .replace("{author}", AdditionalInfoKeys.AUTHORS.get(downloadInfo).toString()); |
103 | 99 | } |
104 | 100 |
|
105 | 101 | private void updateStatus() { |
|
0 commit comments