Thanks to
@KhrysAK47 for the suggestion!
Added the ability to configure a list of commands to dispatch whenever the player saves, loads or deletes a profile in a specific slot. The command list has a <PLAYER> token. Meaning if you add <PLAYER> to the command, it will replace this token with the current player's in-game name.
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!"
# Profiles - fresh start
freshStart:
freshStartOnNewSave
: true
teleportToSpawnOnNewSave
: true
# Profiles - commands
# These configurable list of commands will all be dispatched for the given action (save/load/delete) slot pair.
# The token <PLAYER> will be replaced with the player's in-game name.
commands:
onSave:
slot0
:
-
slot1
:
-
slot2
:
-
onLoad:
slot0
:
-
slot1
:
-
slot2
:
-
onDelete:
slot0
:
-
slot1
:
-
slot2
:
-
shouldSaveOnPlayerLeave
: true
data: