Make codes looks better

Former-commit-id: 4a4eb7d9f35545ba08ab0c88000428b4a529a4d9 [formerly dd0319814e33eecf24c70f0f221a31d4b08bfb39]
Former-commit-id: 3a01974502aea255ce1d4148880fab6c1aa2b77d
This commit is contained in:
Ghost_chu committed 2019-06-07 21:45:14 +08:00
1 parent e7b2b78291
commit e592fec653
1 file changed
+4 -8
@@ -40,15 +40,13 @@ public class Economy_Vault implements EconomyCore {
@Deprecated
public boolean deposit(@NotNull String name, double amount) {
Util.sendDeprecatedMethodWarn();
boolean result = this.vault.depositPlayer(name, amount).transactionSuccess();
return result;
return this.vault.depositPlayer(name, amount).transactionSuccess();
}
@Deprecated
public boolean withdraw(@NotNull String name, double amount) {
Util.sendDeprecatedMethodWarn();
boolean result = this.vault.withdrawPlayer(name, amount).transactionSuccess();
return result;
return this.vault.withdrawPlayer(name, amount).transactionSuccess();
}
@Deprecated
@@ -97,15 +95,13 @@ public class Economy_Vault implements EconomyCore {
@Override
public boolean deposit(@NotNull UUID name, double amount) {
OfflinePlayer p = Bukkit.getOfflinePlayer(name);
boolean result = this.vault.depositPlayer(p, amount).transactionSuccess();
return result;
return this.vault.depositPlayer(p, amount).transactionSuccess();
}
@Override
public boolean withdraw(@NotNull UUID name, double amount) {
OfflinePlayer p = Bukkit.getOfflinePlayer(name);
boolean result = this.vault.withdrawPlayer(p, amount).transactionSuccess();
return result;
return this.vault.withdrawPlayer(p, amount).transactionSuccess();
}
@Override