malte-laukoetter / Laborus

a customisable sponge job plugin
https://ore.spongepowered.org/Lergin/Laborus
MIT License
1 stars 3 forks source link

Economy value keeps resetting to zero #22

Closed AshmitOld closed 7 years ago

AshmitOld commented 7 years ago

Hello

Once i setup economy for a job and add min and max amount then reload or restart server When I go back and check config the min and max value resets to 0. This happens no matter how many time i keep changing it here is my miner.conf had to replace .conf to .txt to be able to upload here miner.txt

malte-laukoetter commented 7 years ago

Thanks for reporting that bug I just fixed that problem! Also you need to set probability between 0.0 and 1.0 (1.0 is always and 0.5 50% of the time and so on ;) )

Edit:

a version with the fix can be downloaded here: https://ore.spongepowered.org/Lergin/Laborus/versions/1.3.1

AshmitOld commented 7 years ago

Always here means whenever a player levels up or whenever he breaks blocks?

And thanks for fixing it so quick ^_^

malte-laukoetter commented 7 years ago

The awards are awarded after an action, so that if you set the actions setting to ["BREAK"] it will only be awarded if a block has been breaked. Otherwise it will happen on each action (including use which already happens if just a mouse button is pressed while holding an item from the use actions.

AshmitOld commented 7 years ago

oh, ohk thanks ^_^