Commands can now be defined per level. If command is not unlocked, player will not be able to use it.
new permission:
progressiveunlock.bypass.commands
New config values:
Code (YAML):
settings:
menu
:
# Inventory positions in /unlockmenu.
# Keep values between 45 and 53.
positions:
filters
: 48
search
: 49
head
: 50
arrow-previous
: 45
arrow-next
: 53
commandUnlock:
enabled
: true
# Should commands be unlocked progressively by level?
allowBypass
: false
# Allow players with progressiveunlock.bypass.commands permission to bypass command lock?
Code (YAML):
messages:
commandLocked
: '&cThis command is still locked for you! Unlocks on level
{level
}.'
xpmode.yml
Code (YAML):
level2:
needed_xp
: 100
commands
:
- /spawn
- /home
farmingmode.yml
Code (YAML):
unlocks:
firstUnlock:
name
: First Unlock
commands
:
- /spawn
- /home