RegionalTunes
RegionalTunes
With regional tunes you can have NBS files playing in set regions in a world.
Requirements
How to use
- Simply drag the jar file into your plugins directory and run the server once.
- Stop the server and go to plugins/RegionalTunes/tunes
- Drag all NBS files you require to be played on the server into that directory and start the server.
- While in game, type /rt help to get a list of commands
- To add a song to a region, use the /rt add command.
- Viola
Commands
help
/rt help
Show the help text
Requires 'regionaltunes.help' permission.
reload
/rt reload
Reloads all songs in the tunes folder so that the server does not need to be restarted to add new songs
Requires 'regionaltunes.reload' permission.
add
/rt add [region] [song]
Adds [song] to the playlist of [region]
Requires 'regionaltunes.set' permission.
remove
/rt remove [region] [song]
Removes [song] from the playlist of [region]
Requires 'regionaltunes.remove' permission.
shuffle
/rt shuffle [region]
Toggles whether the playlist of [region] plays sequentially or randomly
Requires 'regionaltunes.shuffle' permission.
list
/rt list [region]
Lists all of the songs in the playlist of [region]
Requires 'regionaltunes.list' permission.
library
/rt library
Lists all of the songs that are loaded into the plugin.
Requires 'regionaltunes.library' permission.
@Briggy_Bros
Have you had any time to look at making this use ogg/mp3 files in addition to the records?
@frankhribal
I'll definitely look into it :)
@Briggy_Bros
well region jukebox is buggy and uses speaker blocks and there's problems with the looping. yours would be perfect if i could just use custom music like ogg or mp3 files.
@frankhribal
Looking at regionjukebox seems to make this plugin rather redundant, you may as well just use that :P
@Briggy_Bros
Well I know other plugins like regionJukebox or advanced sounds (which is basically the same thing) have been able to use .ogg files as long as it's in the server resource pack.
@frankhribal
No, this can only play NBS files, because Minecraft has the sounds for those in-buit. I don't know if there has been an update to make this possible. You would have to download the ogg files to each client for that to be able to work. I believe this can be done with a resource pack but then I thnk you would be limited to only the default records? If this is not the case, please tell me and I will update the plugin.
Would it be possible to also allow it to play ogg files?
@AYoungCoder
What do you mean? It works with WorldGuard regions.
Could u let this work with a worldguard flag?
@Nozomi111
Does the problem persist in the most recent version?
@Briggy_Bros
Essentially, when i would use the command, it would say "song removed!" but wouldn't remove it. Somehow it ended up putting one song in twice, and the other wasn't even in the files but remained inside the zone, which i believe created a glitch where it just wouldn't play songs.
If you need any other info let me know, i'll try to provide what i can. There weren't any console errors, to my knowledge.
@Nozomi111
The first bug you list isn't specific enough for me to act on.
Working on a fix for the second now
@Kuroyabumozu
You can use something like worldguard as the region. Check the GeneralRegions plugin page for compatible region plugins.
(In case you are unsure about what to look for, the compatible regions it lists are Worldguard, Towny, and Factions. So use one of those 3 plugins to set the region.)
How to set The Region ???
Couple bug reports:
When i tried to remove a song from a region, it seemed to not let me.
Deleting the song from the files makes it not let me use the command at all.
Remaking the region seemed to fix it, but i had to use another name because if i used the same name it saved all the same songs in that region.
@fr233
Should be fixed in the 1.2.4 beta
the last version cant work,pleade fix!
@AYoungCoder
The plugin should already work with Factions because of the region API used.
Currently when the song ends, it repeats, but I am looking to add a playlist feature. - Along with a tidy up of the code.
Sourcecode plls
Should i try to make a hook for factions so people can make a faction tune?
And what happens if the song ends? Make suppor to make songs loop or play a list when in a region plls