Bug with the placeholder {prize}. :D
TheIntelloBox opened this issue · 41 comments
Hey ! :D
When someone kills a mob, he earns money but the message is : "Player earns {prize}€". :D
So the placeholder is not working. :D
Could you tell me how to fix it ? :D
Thanks ! :D
TheIntelloBox. :D
It looks fine to me, I cant see whats wrong. I cant test this the next days because im off on a mini vacation
I have actually been looking at this, but I didt find the bug. It should work. I will have to do some live testing again.
Could you please show me the full section the the mob you is testing on?
Here is my config.yml: https://hastebin.com/ewipoyadoq.php ! :D
And my en_US.lang: https://hastebin.com/kagiruluvi.sql ! :D
Thanks. :D
I cant find the text you mention in the spider settings???
# ### Spider settings ###
spider:
enabled: true
message: Tu as tué un §1{killed}
money:
amount: 5.5:10.5
chance: 1.0
commands:
- chance: '0.05'
cmd: give {player} iron_ingot 1
head:
drophead: true
value: '0'
chance: 0.05
message: §aThe §1{killed} §aa jeté une tête par terre
I'm back. :D (France are in finals of the Fifa World Cup 2018 in Russia ! :D)
https://cdn.discordapp.com/attachments/460816046501265417/466348142099562507/unknown.png
Ahhhh I was focusing on config.yml
I will need the key name to make sure it works. The placeholders will not work in every text string
My guess is you are talking about these one
mobhunting.moneydrop=Tu as droppé ${money}
mobhunting.moneygain=Tu as gagné ${prize}!
I see that I have made a mix of "prize" and "money" but in next release both will work. This should fix your problem.
Please test this snapshot: https://fractal.lindegaard.one:8181/job/MobHunting/658/
I guess you are french :-) Congratulations!
I see I will have to test this again :-( (When I am back from work)
I cant still replicate the problem. Please enable debug /mh debug
and kill a mob and let me see the out in the console
No I was not able to replicate the problem and I was busy fixing a serious problem. V1.1.4
Please confirm this is the lines we are talking about
mobhunting.moneydrop=Tu as droppé ${money}
mobhunting.moneygain=Tu as gagné ${prize}!
I'm busy with the MC1.13 update, sorry.
Also I was not able to replicate the problem. So its not that easy to fix. Your configuration must be diffrent from mine.
Please test this build.
https://fractal.lindegaard.one:8181/job/MobHunting/698/
please let me see your lang.yml to check if you need to delete lines. Use pastebin
You have written the placeholder with a wrong format
this line is
mobhunting.achievement.awarded.prize=Tu as été récompensé de {prize}€ !
should be
mobhunting.achievement.awarded.prize=Tu as été récompensé de ${prize}€ !
???? No, why should I do this???? You dont see the placeholder. You dont see the $
Check all the other placeholders...
You have misunderstood how the placeholders work try
You have written the placeholder with a wrong format
this line is
mobhunting.achievement.awarded.prize=Tu as été récompensé de {prize}€ !
should be
mobhunting.achievement.awarded.prize=Tu as été récompensé de ${prize}€ !
you dont see the $ its a port of the placeholder