Integer overflow fix for duel wagers.#108
Conversation
Minimum bet system is not working, users are being able to bet minor than minimum-bet |
|
Hello, could you maybe tell in what way the system isn't working for you? What commands are you using? Are you sure you wrote the config paths correctly? request:
money-betting:
minimum-bet-amount: 0.001
maximum-bet-amount: 10000000000 |
double only partially fix the problem. Best is to use bigInteger or bigDecimals. Depending on you need decimals or not. |
|
This is true, fully changing everything to BigDecimals would be the best solution. Main issue is that vault still uses doubles for al its methods. Which is still being used in most servers, which would mean that this plugin would still need to respect the limitations of doubles. |
In that case could you convert to double with correct pression. But yeah vault really need a update. |
fixes #107