Welcome to BattleMusic ! First, if you have a problem or a question about BattleMusic you can contact me privately. Either by DM spigot or on discord (Léo Major#1234)
BattleMusic doesn't play sound. It work with different sound player. There is 3 different soud player: Ressource pack sound, MCJukebox and NoteBlockAPI. If you don't know which sound player to use, here are the advantages and disadvantages of each one, so you can choose the one that best suits your server.
Ressource pack Advantage
Allows you to play any music without restriction
Does not require any external plugin
Disadvantage
The player must download a resource pack to hear the music. The resource pack can be very heavy if there is more than one music.
Can create lag (coming from minecraft and not BattleMusic) when music is starting
Allows you to play only music in .nbs format. This greatly limits the choice of music unless you create your own music
BattleMusic setup command: /battlemusic /bm
/battlemusic reload - Reload the BattleMusic config
/battlemusic version - Display the BattleMusic version
/battlemusic remove <sound> - Remove a sound from BattleMusic default music
/battlemusic remove <entity name> <sound> - Remove a sound from a entity type
/battlemusic remove <entity name> <name> <sound> - Remove a sound from a entity type with a custom name
/battlemusic show - Show sound list for default BattleMusic sound
/battlemusic show <entity type> - Show sound list for a entity type
/battlemusic show <entity type> <name> - Show sound list for a custom entity
Add ressource pack music You need a ressource pack that have custom sound to use this. Do your research on how to create a ressource pack with sound. Here is a example of ressource pack and battlemusic configuration by @Kevin_H. Try the command
Code (Text):
/playsound <sound> player @p
If it work and play the sound you can add the same sound in the config and it should work.
/battlemusic add <entity name> <sound> - Add ressource pack sound to a entity type
/battlemusic add <entity name> <name> <sound> - Add ressource pack sound to a entity with a custom name
Add MCJukebox music Require MCJukebox plugin. You need to upload your music online first. Here is a tutorial to upload music online for free by @Moutarde. Your sound will be the url for the sound.
/battlemusic add mcjukebox:<sound> - Add a MCJukebox sound to default BattleMusic sound
/battlemusic add <entity name> mcjukebox:<sound> - Add MCJukebox sound to a entity type
/battlemusic add <entity name> <name> mcjukebox:<sound> - Add MCJukebox sound to a entity with a custom name
Add NoteBlockAPI music Require NoteBlockAPI plugin. You need to download your .nbs file and put it in the plugins/battlemusic/music/ folder. Here is a list of nbs song parody. Your sound will be the file name
/battlemusic add noteblock:<sound> - Add a NoteBlockAPI sound to default BattleMusic sound
/battlemusic add <entity name> noteblock:<sound> - Add NoteBlockAPI sound to a entity type
/battlemusic add <entity name> <name> noteblock:<sound> - Add a NoteBlockAPI sound to entity type with a custom name
Enable BattleMusic for a player: /battlemusic-enable /bm-enable
/battlemusic-enable - Enable battlemusic for self
/battlemusic-enable <player> - Enable battlemusic for a player
Disable BattleMusic for a player: /battlemusic-disable /bm-disable
/battlemusic-disable - Disable battlemusic for self
/battlemusic-disable <player> - Disable battlemusic for a player
battlemusic.* - Give access to all BattleMusic command
battlemusic.setup - Give access to all BattleMusic setup command
battlemusic.disable.other - Give access to disable or enable battlemusic for self or other
battlemusic.disable - Give access to disable or enable battlemusic for self
Code (YAML):
ignore-creative: true
# Can creative player start fight music run-away-time: 15
# The time after the music cancel when they stop fighting disable-music: # entity that you don't want epic music. You don't need epic music for chicken ! - iron_golem
mcjukebox:
fade: 3
# fading time in second when using mcjukebox volume: 100
# Music volume (max 100) commands-after-fight: #Execute command after the fight. {player} for player name -
"jukebox sound {player} https://audio.jukehost.co.uk/O35LQERiX8eIDm1UsZ3h8LcTtgjGrftA" ignore-playervsplayer: false
# Do you ignore player vs player music:
sound: - mcjukebox:https://audio.jukehost.co.uk/h3alZYbHiw6Q1G9vWvMs2uaqJ1oLJn1R
zombie:
LouShunt:
sound: - mcjukebox:https://audio.jukehost.co.uk/hPtJYn6EPXREMhWwgZEHjjUF3apyEfXs