Commit 8463e1b 1 parent 5456b23 commit 8463e1b Copy full SHA for 8463e1b
File tree 2 files changed +4
-9
lines changed
common/src/main/java/net/william278/husksync
2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -378,12 +378,12 @@ final class FailedToLoadException extends IllegalStateException {
378
378
private static final String FORMAT = """
379
379
HuskSync has failed to load! The plugin will not be enabled and no data will be synchronized.
380
380
Please make sure the plugin has been setup correctly (https://william278.net/docs/husksync/setup):
381
-
381
+
382
382
1) Make sure you've entered your MySQL, MariaDB or MongoDB database details correctly in config.yml
383
383
2) Make sure your Redis server details are also correct in config.yml
384
384
3) Make sure your config is up-to-date (https://william278.net/docs/husksync/config-file)
385
385
4) Check the error below for more details
386
-
386
+
387
387
Caused by: %s""" ;
388
388
389
389
FailedToLoadException (@ NotNull String message , @ NotNull Throwable cause ) {
Original file line number Diff line number Diff line change 20
20
package net .william278 .husksync .user ;
21
21
22
22
import de .themoep .minedown .adventure .MineDown ;
23
- import de .themoep .minedown .adventure .MineDownParser ;
24
23
import net .kyori .adventure .audience .Audience ;
25
24
import net .kyori .adventure .text .Component ;
26
25
import net .william278 .husksync .HuskSync ;
@@ -71,9 +70,7 @@ public void sendMessage(@NotNull Component component) {
71
70
* @param mineDown the parsed {@link MineDown} to send
72
71
*/
73
72
public void sendMessage (@ NotNull MineDown mineDown ) {
74
- sendMessage (mineDown
75
- .disable (MineDownParser .Option .SIMPLE_FORMATTING )
76
- .replace ().toComponent ());
73
+ sendMessage (mineDown .toComponent ());
77
74
}
78
75
79
76
/**
@@ -82,9 +79,7 @@ public void sendMessage(@NotNull MineDown mineDown) {
82
79
* @param mineDown the parsed {@link MineDown} to send
83
80
*/
84
81
public void sendActionBar (@ NotNull MineDown mineDown ) {
85
- getAudience ().sendActionBar (mineDown
86
- .disable (MineDownParser .Option .SIMPLE_FORMATTING )
87
- .replace ().toComponent ());
82
+ getAudience ().sendActionBar (mineDown .toComponent ());
88
83
}
89
84
90
85
/**
You can’t perform that action at this time.
0 commit comments