Skip to content

Commit 2b36349

Browse files
committed
check if Vault is enabled before returning server Vault acc
1 parent 3ea2f9e commit 2b36349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pro/cloudnode/smp/bankaccounts/Account.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ else if (limit != null) {
351351
* Get the server Vault account
352352
*/
353353
public static @NotNull Optional<@NotNull Account> getServerVaultAccount() {
354-
if (!BankAccounts.getInstance().config().serverAccountEnabled()) return Optional.empty();
354+
if (!BankAccounts.getInstance().config().integrationsVaultEnabled()) return Optional.empty();
355355
return getVaultAccount(BankAccounts.getConsoleOfflinePlayer());
356356
}
357357

0 commit comments

Comments
 (0)