PyvesB / advanced-achievements

:fireworks: Popular plugin that adds unique and challenging achievements to Minecraft servers.
https://www.spigotmc.org/resources/83466
GNU General Public License v3.0
199 stars 215 forks source link

Smelting Issue #429

Closed lizzardboy912 closed 6 years ago

lizzardboy912 commented 6 years ago

I'm trying to make it so I can make achievements for each individual ore (and also raw foods), but every time I try to I get this message from console.

[ERROR] [AdvancedAchievements] A non recoverable error was encountered while loading the plugin, disabling it: [RAW] com.hm.achievement.exception.PluginLoadError: Achievement with path (Smelting.iron_ore) is missing its Name parameter in config.yml.

And this is how I have it setup in the config file.

When an item is smelt in a furnace.

Smelting: iron_ore: '100': Message: 'Smelt 100 iron ore' Name: smeltitems_100_iron_ore DisplayName: Minor Iron Smith Reward: Money: 500 '500': Message: 'Smelt 500 Iron Ore' Name: smeltitems_500_iron_ore DisplayName: Major Iron Smith Reward: Money: 2500 '1000': Message: 'Smelt 1000 Iron Ore' Name: smeltitems_1000_iron_ore DisplayName: Master Iron Smith Reward: Money: 5000

If I take out the iron_ore: and put in the next ore shown below it will only load the gold one. '100': Message: 'Smelt 100 iron ore' Name: smeltitems_100_iron_ore DisplayName: Minor Iron Smith Reward: Money: 500 '500': Message: 'Smelt 500 Iron Ore' Name: smeltitems_500_iron_ore DisplayName: Major Iron Smith Reward: Money: 2500 '1000': Message: 'Smelt 1000 Iron Ore' Name: smeltitems_1000_iron_ore DisplayName: Master Iron Smith Reward: Money: 5000
'100': Message: 'Smelt 100 Gold ore' Name: smeltitems_100_gold_ore DisplayName: Minor Gold Smith Reward: Money: 500 '500': Message: 'Smelt 500 Gold Ore' Name: smeltitems_500_gold_ore DisplayName: Major Gold Smith Reward: Money: 2500 '1000': Message: 'Smelt 1000 Gold Ore' Name: smeltitems_1000_gold_ore DisplayName: Master Gold Smith Reward: Money: 5000

PyvesB commented 6 years ago

Hello @lizzardboy912,

As indicated in the configuration file, Smelting is a "normal" category based on thresholds, therefore it can't be used with sub-categories. 😉

Cheers,

Pyves