Thanks to
@KhrysAK47 for the suggestion!
This update will extend the save, load and delete functionality to be available via commands. I've updated the /profiles command to list more details about these commands.
The /profiles save, load and delete commands will work exactly as the GUI functionality has previously. I've added some additional properties to the config.yml for error handling the save slot provided in these commands.
Here is the latest config.yml
Code (YAML):
# Profiles - Configuration
# Each player will have 3 save slots stored in this file.
# Any changes to the values in the 'data' section WILL affect the player's saved profile. Modify at your own risk!
prefix
:
"&8[&dProfiles&8]"
inventoryTitle
:
"Profiles - Main Menu"
previewPlayerTitle
:
"Preview - Player Inventory"
previewEnderchestTitle
:
"Preview - Enderchest Inventory"
reloadConfigMessage
:
" &aSuccessfully reloaded the config!"
noPermissionMessage
:
" &cYou do not have permission to use that command!"
loadProfileMessage
:
" &aSuccessfully loaded saved profile on slot #<SLOT_NUMBER>!"
saveProfileMessage
:
" &aSuccessfully saved profile on slot #<SLOT_NUMBER>!"
deleteProfileMessage
:
" &aSuccessfully deleted profile on slot #<SLOT_NUMBER>!"
saveDoesNotExistOnSlotMessage
:
" &cYou do not have a save on slot #<SLOT_NUMBER>!"
invalidSlotMessage
:
" &cSlot #<SLOT_NUMBER> is not a valid save slot!"
freshStart:
freshStartOnNewSave
: true
teleportToSpawnOnNewSave
: true
shouldSaveOnPlayerLeave
: true
data: