diff --git a/commands/music.js b/commands/music.js index a5026c5..02fe908 100644 --- a/commands/music.js +++ b/commands/music.js @@ -70,7 +70,21 @@ module.exports = { } else if (color==='yellow') { color = 'gold'; }; - message.push({text: value + ' ', color, clickEvent: {action: 'suggest_command', value: `*music play ${value}`}}); + message.push({text: value + ' ', + color, + clickEvent: { + action: 'suggest_command', + value: `*music play ${value}`, + }, + hoverEvent: { + action: 'show_text', + contents: [ + {text: 'Name: ', color: 'white'}, + {text: value, color: 'gold'}, + '\n', + {text: 'Click here to suggest the command!', color: 'green'}, + ], + }}); }); bot.core.run('minecraft:tellraw @a ' + JSON.stringify(message));