Advanced config not checking mcmmo levels properly.
FatalBlade opened this issue · 0 comments
I've added an optional requirement that allows players who have achieved lvl 500 in mining to get a mcmmo perk however it just says its done even though the player is at 0 for that skill
[spoiler= AdvancedConfig]
ranks:
Peasant:
requirements:
time:
value: 500d
results:
rank change: Peasant;Neophyte
command: 'say &p just got a promotion; broadcast &p has just been promoted to Member!'
message: 'Congratulations, you can build shit.'
Neophyte:
requirements:
time:
value: 3h
exp:
value: 5
gamemode:
value: 0
mobs killed:
value: 50
mobs killed2:
value: 2;creeper
has achievement:
value: BUILD_HOE
has achievement2:
value: BUILD_PICKAXE
has achievement3:
value: BUILD_SWORD
has achievement4:
value: BUILD_HOE
has achievement5:
value: BUILD_WORKBENCH
has achievement6:
value: MINE_WOOD
has achievement7:
value: OPEN_INVENTORY
has achievement8:
value: KILL_ENEMY
results:
rank change: Neophyte;Apprentice
command: 'say &p has just been promoted to Apprentice!; give &p 1 100; eco give &p 500; tell &p You have just earned 100 stone and ¥500!'
message: 'Congratulations, you are now an Apprentice.'
Apprentice:
requirements:
time:
value: 1d
exp:
value: 10
mobs killed:
value: 100
has achievement:
value: BUILD_FURNACE
has achievement2:
value: ACQUIRE_IRON
has achievement3:
value: BUILD_BETTER_PICKAXE
results:
rank change: Apprentice;Novice
command: 'say &p has just been promoted to Novice!'
message: 'Congratulations, you are now a Novice.'
Novice:
requirements:
time:
value: 2d
mobs killed:
value: 200
blocks moved:
value: 15900
has achievement:
value: KILL_COW
has achievement2:
value: MAKE_BREAD
results:
rank change: Novice;Journeyman
command: 'say&p has just been promoted to Journeyman and given 64 Steak!; give steak 64'
message: 'Congratulations, you are now a Journeyman!'
Journeyman:
requirements:
time:
value: 5d
items crafted:
value: 100
exp:
value: 15
mobs killed:
value: 300
has achievement:
value: GET_DIAMONDS
has achievement2:
value: ENCHANTMENTS
mcmmo skill level:
value: 500;mining
results:
message: 'You have reached 500 Mining! You now have a +33% chance to activate all skills'
command: 'manuadd &p mcmmo.perks.lucky.mining'
options:
optional: true
auto complete: true
mcmmo skill level2:
value: 500;smelting
results:
message: 'You have reached 500 Smelting! You now have a +33% chance to activate all skills'
command: 'manuadd &p mcmmo.perks.lucky.smelting'
options:
optional: true
auto complete: true
results:
rank change: Journeyman;Craftsman
command: 'say&p has just been promoted to Craftsman!; eco give &p 3000; tell &p you have just earned ¥3000!'
message: 'Congratulations, you are now a Craftsman!'
[/spoiler]