Added a configuration option (shouldSaveOnPlayerLeave) that if enabled will automatically save the player's profile when they leave the server.
This auto save will be applied to the Profile slot # that they last interacted with. Meaning, if they loaded or saved their Profile on slot1, this auto save will occur on slot1 as well.
I've also updated the 'loadProfileMessage' and 'saveProfileMessage' to indicate which slot # is being interacting with. Here is the updated '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>!"
freshStart:
freshStartOnNewSave
: true
teleportToSpawnOnNewSave
: true
shouldSaveOnPlayerLeave
: true
data: