How about some plugin for Ambience? Here are some things you could do with it:
Provide the songs/config server-side, similar to a resourcepack. When a client with Ambience joins, it will send a request to the server, telling it that this is a client with ambience installed. the server can then send an "Ambience-pack" to the client, which displays a popup asking the player if they want to use the provided pack. If the player accepts, it is downloaded and applied (for this server only). The files provided by the server need to fit a specific format (like only mp3) to avoid abuse by the serverowner.
This doesn't work if the player doesn't use the provided Ambience-pack. The server can define its own "events" on which a song would play. These eventnames are defined in the config that is sent to the client (only the names, not when they should actually play) and then the server can, if event X occours, send the eventname that occoured to the client which plays an according song.
How about some plugin for Ambience? Here are some things you could do with it:
Provide the songs/config server-side, similar to a resourcepack. When a client with Ambience joins, it will send a request to the server, telling it that this is a client with ambience installed. the server can then send an "Ambience-pack" to the client, which displays a popup asking the player if they want to use the provided pack. If the player accepts, it is downloaded and applied (for this server only). The files provided by the server need to fit a specific format (like only mp3) to avoid abuse by the serverowner.
This doesn't work if the player doesn't use the provided Ambience-pack. The server can define its own "events" on which a song would play. These eventnames are defined in the config that is sent to the client (only the names, not when they should actually play) and then the server can, if event X occours, send the eventname that occoured to the client which plays an according song.