mirror of https://github.com/MilkBowl/Vault.git
builtin editor goof
This commit is contained in:
parent
d17f3c0fbd
commit
d456b051c3
|
@ -96,7 +96,7 @@ public class Economy_Essentials extends AbstractEconomy {
|
||||||
@Override
|
@Override
|
||||||
public EconomyResponse withdrawPlayer(String playerName, double amount) {
|
public EconomyResponse withdrawPlayer(String playerName, double amount) {
|
||||||
if (playerName == null) {
|
if (playerName == null) {
|
||||||
return new EconomyResponse(0, 0 ResponseType.FAILURE, "Player name can not be null.");
|
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Player name can not be null.");
|
||||||
}
|
}
|
||||||
if (amount < 0) {
|
if (amount < 0) {
|
||||||
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot withdraw negative funds");
|
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot withdraw negative funds");
|
||||||
|
@ -138,7 +138,7 @@ public class Economy_Essentials extends AbstractEconomy {
|
||||||
|
|
||||||
public EconomyResponse tryDepositPlayer(String playerName, double amount, int tries) {
|
public EconomyResponse tryDepositPlayer(String playerName, double amount, int tries) {
|
||||||
if (playerName == null) {
|
if (playerName == null) {
|
||||||
return new EconomyResponse(0, 0 ResponseType.FAILURE, "Player name can not be null.");
|
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Player name can not be null.");
|
||||||
}
|
}
|
||||||
if (amount < 0) {
|
if (amount < 0) {
|
||||||
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot desposit negative funds");
|
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Cannot desposit negative funds");
|
||||||
|
|
Loading…
Reference in New Issue