-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix NPE when running /f mod without args #17
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is perfect, I will merge this now.
I added some notes about styling changes from the previous maintainers, which we can change in another commit 👍
Thanks for working on this so quickly 🕺
@@ -194,18 +194,18 @@ public static boolean transferMoney(EconomyParticipator invoker, EconomyParticip | |||
} | |||
|
|||
// Transfer money | |||
EconomyResponse erw = econ.withdrawPlayer(fromAcc, amount); | |||
EconomyResponse erw = econ.withdrawPlayer(fromAcc.getName(), amount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know its not your fault, but the previous maintainer used a lot of acronyms which we're trying to move away from - as these can make it difficult to read.
For example, erw
should be ecomomyResponseWithdraw
|
||
if (erw.transactionSuccess()) { | ||
EconomyResponse erd = econ.depositPlayer(toAcc, amount); | ||
EconomyResponse erd = econ.depositPlayer(toAcc.getName(), amount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, move to ecomonyResponseDeposit
@@ -15,7 +15,7 @@ | |||
public Map<String, String> tags; | |||
|
|||
public TextUtil() { | |||
this.tags = new HashMap<String, String>(); | |||
this.tags = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!! Diamonds all around 💎💎💎💎
Changes:
Fixed NPE
Had to put a UTF-8 line in gradle as I was getting odd errors.
Vault API updates.