mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-01 14:33:21 +01:00
Fix prefix not getting parsed with MineDown
This commit is contained in:
parent
a84cd7a2aa
commit
03317c2c78
@ -190,7 +190,11 @@ public class Messages {
|
||||
public Component getComponent(CommandSender sender, boolean prefixSuffix, Map<String, String> replacementMap, String... replacements) {
|
||||
MineDown mineDown = new MineDown("%prefix" + getLang(sender));
|
||||
mineDown.placeholderSuffix("");
|
||||
mineDown.replace("prefix", prefixSuffix ? prefix.getLang(sender) : "");
|
||||
if (prefixSuffix) {
|
||||
mineDown.replace("prefix", MineDown.parse(prefix.getLang(sender)));
|
||||
} else {
|
||||
mineDown.replace("prefix", "");
|
||||
}
|
||||
mineDown.replace(replacementMap);
|
||||
mineDown.replace(replacements);
|
||||
return mineDown.toComponent();
|
||||
|
Loading…
Reference in New Issue
Block a user