Closed BJTMastermind closed 8 months ago
Fixed conflicts.
Can you combine all your changes into a single commit, so I can properly review the changes you made?
Having a hard time getting these into 1 commit. So im going to just remake the PR which would be easier for me right now.
new PR: #74
This pull request introduces a new
filename
subcommand to/audioplayer
.Overview
It operates by utilizing a new file named
filename_mappings.dat
, which resides in the existingaudio_player_data
folder of the world. This file is structured as a GZipped NBT file, containing a list of mappings between original filenames and their corresponding UUID names.File Structure
The structure of
filename_mappings.dat
is as follows:Functionality
Whenever a new audio file is uploaded, regardless of the method used, an entry is added to
filename_mappings.dat
. Conversely, if a file is deleted the mappings associated with that file will be removed the next time thefilename
command is ran or when another audio file is uploaded.Motivation
I implemented this feature to enhance the usability and maintainability of the users audio files. By introducing the
filename
subcommand and associated functionality, users can easily manage audio file mappings, whether its with the command itself for a couple of files or externally with user made scripts for a larger number of files.