Skip to content

Commit 8463e1b

Browse files
committed
fix: Remove legacy MineDown calls
1 parent 5456b23 commit 8463e1b

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

common/src/main/java/net/william278/husksync/HuskSync.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ final class FailedToLoadException extends IllegalStateException {
378378
private static final String FORMAT = """
379379
HuskSync has failed to load! The plugin will not be enabled and no data will be synchronized.
380380
Please make sure the plugin has been setup correctly (https://william278.net/docs/husksync/setup):
381-
381+
382382
1) Make sure you've entered your MySQL, MariaDB or MongoDB database details correctly in config.yml
383383
2) Make sure your Redis server details are also correct in config.yml
384384
3) Make sure your config is up-to-date (https://william278.net/docs/husksync/config-file)
385385
4) Check the error below for more details
386-
386+
387387
Caused by: %s""";
388388

389389
FailedToLoadException(@NotNull String message, @NotNull Throwable cause) {

common/src/main/java/net/william278/husksync/user/OnlineUser.java

+2-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
package net.william278.husksync.user;
2121

2222
import de.themoep.minedown.adventure.MineDown;
23-
import de.themoep.minedown.adventure.MineDownParser;
2423
import net.kyori.adventure.audience.Audience;
2524
import net.kyori.adventure.text.Component;
2625
import net.william278.husksync.HuskSync;
@@ -71,9 +70,7 @@ public void sendMessage(@NotNull Component component) {
7170
* @param mineDown the parsed {@link MineDown} to send
7271
*/
7372
public void sendMessage(@NotNull MineDown mineDown) {
74-
sendMessage(mineDown
75-
.disable(MineDownParser.Option.SIMPLE_FORMATTING)
76-
.replace().toComponent());
73+
sendMessage(mineDown.toComponent());
7774
}
7875

7976
/**
@@ -82,9 +79,7 @@ public void sendMessage(@NotNull MineDown mineDown) {
8279
* @param mineDown the parsed {@link MineDown} to send
8380
*/
8481
public void sendActionBar(@NotNull MineDown mineDown) {
85-
getAudience().sendActionBar(mineDown
86-
.disable(MineDownParser.Option.SIMPLE_FORMATTING)
87-
.replace().toComponent());
82+
getAudience().sendActionBar(mineDown.toComponent());
8883
}
8984

9085
/**

0 commit comments

Comments
 (0)