Utilising the great work done by der_mewin with WGRegionEvents, I have created a plugin which adds to the functionality of WorldGuard to allow players to add titles and sounds to regions simply using WorldGuard's built in commands.
Commands
/region flag [region_id] greeting-title [Title Content] /region flag [region_id] greeting-subtitle [Subtitle Content] /region flag [region_id] greeting-fade-in [Duration] /region flag [region_id] greeting-duration [Duration] /region flag [region_id] greeting-fade-out [Duration] /region flag [region_id] greeting-sound [Sound Name] /region flag [region_id] greeting-command [Command] /region flag [region_id] farewell-title [Title Content] /region flag [region_id] farewell-subtitle [Subtitle Content] /region flag [region_id] farewell-fade-in [Duration] /region flag [region_id] farewell-duration [Duration] /region flag [region_id] farewell-fade-out [Duration] /region flag [region_id] farewell-sound [Sound Name] /region flag [region_id] farewell-command [Command]
Clearing a title, subtitle, sound, command, or duration is done in the same fashion as other WorldGuard flags. Simply do the command above but don't add the content parameter.
For a sound name, use the org.bukkit.sound reference.
Duration is in server ticks. So a duration of 20 would last 1 second.
Standard Minecraft colours codes are supported in titles and subtitles.
This plugin requires WorldGuard 6.2+
As it's my first MC plugin, any feedback is appreciated.