FatSaw / AMusic

Minecraft server plugin for playing music through resource pack
The Unlicense
3 stars 0 forks source link

Enchant tracks storing mechanism #9

Open Dymeth opened 7 months ago

Dymeth commented 7 months ago

If the number of tracks is significantly increased, plugin users will encounter long data.yml saving time, as this overwrites the file completely. It is necessary to either load playlist data from YML within each specific playlist, or abandon storing data in YML altogether and switch to dynamic loading/saving with databases (MariaDB, PostgreSQL, etc)

FatSaw commented 6 months ago

Added ability to initialise multiple AMusic instances. With custom directory, external Config and Data storage.

For custom config storage added constructor with all options in me.bomb.amusic#ConfigOptions

For custom data storage need to extend me.bomb.amusic.Data and implement me.bomb.amusic.Data#save();, me.bomb.amusic.Data#load();

Playlists and sounds custom (not file) storage not implement yet.

FatSaw commented 6 months ago

data.yml removed. Each packed resourcepack now has own file.