API: Can I check if a player reaches the balance limit before/while adding money? #5097
Replies: 1 comment
-
Now, I'm just using following snippet. If there are any suggestions, please let me know. Essentials ess = (Essentials) Essentials.getProvidingPlugin(Essentials.class);
BigDecimal max = ess.getSettings().getMaxMoney(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One of my users complained about money which gets lost when trading with money (if the new balance would exceed the set limit). Therefore, I want to support this setting of EssentialsX. While looking into the API (Economy class), EssentialsX catches
MaxMoneyException
s so there's no way I can detect it. Is there another way of supporting this?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions