Skip to content

Commit 0e50438

Browse files
committed
move the error messages section to the end of the config
1 parent fb42ff3 commit 0e50438

File tree

1 file changed

+74
-74
lines changed

1 file changed

+74
-74
lines changed

src/main/resources/config.yml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -400,80 +400,6 @@ messages:
400400
# Set to nothing, e.g. ‘footer:’ (without the quotes) to disable.
401401
footer: <dark_gray>---</dark_gray>
402402

403-
# Error messages.
404-
errors:
405-
no-accounts: <red>(!) You have no bank accounts.</red>
406-
no-permission: <red>(!) You do not have permission to use this command.</red>
407-
account-not-found: <red>(!) Account not found.</red>
408-
unknown-command: <red>(!) Unknown command. Try <click:suggest_command:/<label> help><gray>/<label> help</gray></click>.</red>
409-
410-
# Placeholders:
411-
# <type> → The account type.
412-
# <limit> → The account limit for that type.
413-
max-accounts: <red>(!) You cannot open more than <limit> <type> accounts.</red>
414-
415-
rename-vault-account: <red>(!) You cannot rename this account.</red>
416-
not-account-owner: <red>(!) You are not the owner of this account.</red>
417-
frozen: <gold>(!) <account-type> account <gray><account> (<account-id>)</gray> is frozen. This account cannot initiate or receive transactions.</gold>
418-
same-from-to: <red>(!) The ‘from’ and ‘to’ accounts must be different.</red>
419-
transfer-self-only: <red>(!) You can only make transfers between your own accounts.</red>
420-
transfer-other-only: <red>(!) You cannot make a transfer between your own accounts.</red>
421-
422-
# Invalid number was given. Placeholder <number> is the invalid number.
423-
invalid-number: <red>(!) Invalid number:</red> <gray><number></gray>
424-
425-
# $0 or negative transfer
426-
negative-transfer: <red>(!) The amount to transfer must be greater than zero.</red>
427-
428-
# Insufficient funds. All placeholders from ‘messages.balance’ are available.
429-
insufficient-funds: <red>(!) Your account has insufficient funds. You have <gray><balance-formatted></gray></red>
430-
431-
closing-balance: <red>(!) You cannot close an account that has a non-zero balance. This account has <gray><balance-formatted></gray></red>
432-
player-only: <red>(!) You must be a player to use this command.</red>
433-
player-not-found: <red>(!) Player not found.</red>
434-
435-
# You must have a specific item to convert to an instrument.
436-
# Placeholders:
437-
# <material> → The item type that is required (the item ID).
438-
# <material-key> → Item translation key, can be as ‘<lang:<material-key>>’.
439-
instrument-requires-item: <red>(!) You must have <gray>x1 <lang:<material-key>></gray> in your inventory to create a bank card from.</red>
440-
441-
# Target player’s inventory is full.
442-
# Placeholder <player> is the target player’s name.
443-
target-inventory-full: <red>(!) The inventory of <gray><player></gray> is full.</red>
444-
445-
block-too-far: <red>(!) The targeted block is too far away.</red>
446-
pos-already-exists: <red>(!) A POS already exists at this location.</red>
447-
pos-not-chest: <red>(!) The targeted block is not a chest.</red>
448-
pos-double-chest: <red>(!) The POS cannot be a double chest.</red>
449-
pos-empty: <red>(!) The chest is empty. POS cancelled.</red>
450-
pos-invalid-card: <red>(!) You need a valid bank card to use POS.</red>
451-
pos-no-permission: <red>(!) You do not have permission to use POS.</red>
452-
no-card: <red>(!) You must hold your bank card to use this.</red>
453-
pos-items-changed: <red>(!) The items in the chest have changed. POS cancelled.</red>
454-
pos-create-business-only: <red>(!) You can only create a POS with a business account.</red>
455-
456-
# Provided string includes disallowed characters
457-
# Placeholder <characters> is the disallowed characters.
458-
disallowed-characters: <red>(!) The provided string contains disallowed characters:</red> <gray><characters></gray>
459-
460-
already-frozen: <yellow>(!) This account is already frozen.</yellow>
461-
not-frozen: <gold>(!) This account is not frozen.</gold>
462-
negative-invoice: <red>(!) The amount to invoice must be greater than zero.</red>
463-
invoice-not-found: <red>(!) Invoice not found.</red>
464-
invoice-pay-self: <red>(!) You cannot pay your own invoice with the same account. You can use a different account.</red>
465-
invoice-already-paid: <red>(!) This invoice has already been paid.</red>
466-
467-
# Cannot send this invoice to this player because either:
468-
# a) the invoice has a set buyer and that’s not this player; OR
469-
# b) the player does not have permission to view invoices not meant for them.
470-
invoice-cannot-send: <red>(!) You cannot send this invoice to that player because they don’t have permission to view it.</red>
471-
472-
player-never-joined: <red>(!) This player has never joined this server.</red>
473-
async-failed: <red>(!) The request failed. See the console for details.</red>
474-
delete-vault-account: <red>(!) You cannot delete this account.</red>
475-
transfer-to-server-vault: <red>(!) You cannot transfer funds to this account. This account is for internal use only.</red>
476-
477403
# Account balance.
478404
# Available placeholders:
479405
# <account> → Account name.
@@ -743,3 +669,77 @@ messages:
743669
# Placeholders:
744670
# <version> → The new BankAccounts version number, e.g. ‘1.10.1’.
745671
update-available: <hover:show_text:'<white>Click to view update</white><newline><gray> - Changelog & release notes<newline> - Download links'><click:open_url:https://modrinth.com/plugin/bankaccounts/version/<version>><dark_gray>[<green>BankAccounts</green>]</dark_gray> <white>A new version <green><version></green> has been released.</white><newline><gray>Please update to get the latest bug fixes and features.</gray><newline> <green>> Click to view update<green></click></hover>
672+
673+
# Error messages.
674+
errors:
675+
no-accounts: <red>(!) You have no bank accounts.</red>
676+
no-permission: <red>(!) You do not have permission to use this command.</red>
677+
account-not-found: <red>(!) Account not found.</red>
678+
unknown-command: <red>(!) Unknown command. Try <click:suggest_command:/<label> help><gray>/<label> help</gray></click>.</red>
679+
680+
# Placeholders:
681+
# <type> → The account type.
682+
# <limit> → The account limit for that type.
683+
max-accounts: <red>(!) You cannot open more than <limit> <type> accounts.</red>
684+
685+
rename-vault-account: <red>(!) You cannot rename this account.</red>
686+
not-account-owner: <red>(!) You are not the owner of this account.</red>
687+
frozen: <gold>(!) <account-type> account <gray><account> (<account-id>)</gray> is frozen. This account cannot initiate or receive transactions.</gold>
688+
same-from-to: <red>(!) The ‘from’ and ‘to’ accounts must be different.</red>
689+
transfer-self-only: <red>(!) You can only make transfers between your own accounts.</red>
690+
transfer-other-only: <red>(!) You cannot make a transfer between your own accounts.</red>
691+
692+
# Invalid number was given. Placeholder <number> is the invalid number.
693+
invalid-number: <red>(!) Invalid number:</red> <gray><number></gray>
694+
695+
# $0 or negative transfer
696+
negative-transfer: <red>(!) The amount to transfer must be greater than zero.</red>
697+
698+
# Insufficient funds. All placeholders from ‘messages.balance’ are available.
699+
insufficient-funds: <red>(!) Your account has insufficient funds. You have <gray><balance-formatted></gray></red>
700+
701+
closing-balance: <red>(!) You cannot close an account that has a non-zero balance. This account has <gray><balance-formatted></gray></red>
702+
player-only: <red>(!) You must be a player to use this command.</red>
703+
player-not-found: <red>(!) Player not found.</red>
704+
705+
# You must have a specific item to convert to an instrument.
706+
# Placeholders:
707+
# <material> → The item type that is required (the item ID).
708+
# <material-key> → Item translation key, can be as ‘<lang:<material-key>>’.
709+
instrument-requires-item: <red>(!) You must have <gray>x1 <lang:<material-key>></gray> in your inventory to create a bank card from.</red>
710+
711+
# Target player’s inventory is full.
712+
# Placeholder <player> is the target player’s name.
713+
target-inventory-full: <red>(!) The inventory of <gray><player></gray> is full.</red>
714+
715+
block-too-far: <red>(!) The targeted block is too far away.</red>
716+
pos-already-exists: <red>(!) A POS already exists at this location.</red>
717+
pos-not-chest: <red>(!) The targeted block is not a chest.</red>
718+
pos-double-chest: <red>(!) The POS cannot be a double chest.</red>
719+
pos-empty: <red>(!) The chest is empty. POS cancelled.</red>
720+
pos-invalid-card: <red>(!) You need a valid bank card to use POS.</red>
721+
pos-no-permission: <red>(!) You do not have permission to use POS.</red>
722+
no-card: <red>(!) You must hold your bank card to use this.</red>
723+
pos-items-changed: <red>(!) The items in the chest have changed. POS cancelled.</red>
724+
pos-create-business-only: <red>(!) You can only create a POS with a business account.</red>
725+
726+
# Provided string includes disallowed characters
727+
# Placeholder <characters> is the disallowed characters.
728+
disallowed-characters: <red>(!) The provided string contains disallowed characters:</red> <gray><characters></gray>
729+
730+
already-frozen: <yellow>(!) This account is already frozen.</yellow>
731+
not-frozen: <gold>(!) This account is not frozen.</gold>
732+
negative-invoice: <red>(!) The amount to invoice must be greater than zero.</red>
733+
invoice-not-found: <red>(!) Invoice not found.</red>
734+
invoice-pay-self: <red>(!) You cannot pay your own invoice with the same account. You can use a different account.</red>
735+
invoice-already-paid: <red>(!) This invoice has already been paid.</red>
736+
737+
# Cannot send this invoice to this player because either:
738+
# a) the invoice has a set buyer and that’s not this player; OR
739+
# b) the player does not have permission to view invoices not meant for them.
740+
invoice-cannot-send: <red>(!) You cannot send this invoice to that player because they don’t have permission to view it.</red>
741+
742+
player-never-joined: <red>(!) This player has never joined this server.</red>
743+
async-failed: <red>(!) The request failed. See the console for details.</red>
744+
delete-vault-account: <red>(!) You cannot delete this account.</red>
745+
transfer-to-server-vault: <red>(!) You cannot transfer funds to this account. This account is for internal use only.</red>

0 commit comments

Comments
 (0)