This commit is contained in:
Chipmunk 2023-04-19 22:02:44 -04:00
parent efd0003576
commit 7d3cafa578

View file

@ -166,7 +166,7 @@ public class MusicCommand {
directories.add(
Component.text(filename + "/", color)
.clickEvent(ClickEvent.suggestCommand(prefix + "music list " + escapedPath))
.hoverEvent(HoverEvent.showText(Component.translatable("Click to list %s", Component.text(filename, NamedTextColor.GREEN))))
.hoverEvent(HoverEvent.showText(Component.translatable("Click to list %s", Component.text(filename))))
);
}
@ -182,7 +182,7 @@ public class MusicCommand {
files.add(
Component.text(filename, color)
.clickEvent(ClickEvent.suggestCommand(prefix + "music play " + escapedPath))
.hoverEvent(HoverEvent.showText(Component.translatable("Click to play %s", Component.text(filename, NamedTextColor.GREEN))))
.hoverEvent(HoverEvent.showText(Component.translatable("Click to play %s", Component.text(filename))))
);
}