This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
AdBlock Extension Detected!
Our website is made possible by displaying online advertisements to our members.
Please disable AdBlock browser extension first, to be able to use our community.
Question
Williams
I'm creating a percentage config for VIP I want them to have 30% discount for teleport but what would be the option in java for integers? For example
final int price = 10000
getVip() ? price % 10 : price
result = 0
when debugging my value is 0 but it should be 1000
3 answers to this question
Recommended Posts