more stable logging in the event that either vault or essentials is missing
the placeholders no longer update once per server restart
Hi all!
In this update, I have made a lot of miscellaneous changes.
1. Improved stability regarding configuration and message handling
2. Improved performance when parsing color codes and hex codes
3. Improved Worth handling: Now the "worth" section actually generates, and if none was previously specified, it will default to 1.0
4. Added and fixed some placeholders, especially made them more consistent. %CurrencyName% is now ALWAYS %currency_name%
5. Further performance improvements.
Thanks!
This jar is for 1.8-1.12, 1.19-1.20.2
If you want to use any version between 1.13-1.18, then use the jar with the "-LEGACY" suffix in the version history tab!
Hi all!
In this update, I have made a lot of miscellaneous changes.
1. Improved stability regarding configuration and message handling
2. Improved performance when parsing color codes and hex codes
3. Improved Worth handling: Now the "worth" section actually generates, and if none was previously specified, it will default to 1.0
4. Added and fixed some placeholders, especially made them more consistent. %CurrencyName% is now ALWAYS %currency_name%
5. Further performance improvements.
Thanks!
This jar is for 1.13-1.18
/exchange <fromCurrency> <toCurrency> <amount>
so:
/exchange vault Ruby 1000 -> Buy 1000 ruby with vault money
/exchange Ruby vault 1000 -> Buy 1000 vault money with Ruby
/exchange <fromCurrency> <toCurrency> <amount>
so:
/exchange vault Ruby 1000 -> Buy 1000 ruby with vault money
/exchange Ruby vault 1000 -> Buy 1000 vault money with Ruby
fixed voiding currency when sending it to yourself
This jar is for every version below 1.19
This jar is for 1.19 and 1.20 and everything below 1.12.2
Now, if you have an outdated version of my plugin, you will be prompted to download the new version.
That's it.
Enjoy!
With this new update, 1.20 support is finally added!
Furthermore, I fixed some exchange messages.
prior to today there was a bug that money would be set back to start amount upon starting the server. that has been fixed.
Also, new exchange system!
/currency exchange
permission: prekoytes_currency.exchange
messages:
- messages.no_permission_exchange
- messages.invalid_usage_exchange
- messages.same_currency
- messages.exchange_not_enough_worth
- messages.exchanged_successfully
non-exchange specific messages but still used in exchange command:
- messages.invalid_amount
- messages.currency_not_exist
- messages.insufficient_funds
%prefix% is now globally usable.
also fixed some other errors and issues
Stability fixes regarding messages!
thanks_for_using: '#00FFFFThanks for using my plugin!'
Seriously, a lot of fixes.
messages:
balances_header: "&e—&6✦&e— Balances —&6✦&e—"
balances_message: "&e%symbol% %currency_name%: %balance%"
balance_single_currency: "&7[&9%symbol%&7] &eYour balance for %currency_name%: %balance%"
currency_added: "&aCurrency '%currency_name%' added successfully."
currency_already_exists: "&cThe currency '%currency_name%' already exists."
currency_entry: "&e- %display_name% (%symbol%)"
currency_list: "&eCurrencies:"
currency_not_exist: "&cCurrency '%currency_name%' does not exist."
currency_removed: "&aCurrency '%currency_name%' removed successfully."
currency_rename_error: "&cFailed to rename currency %old_currency_name%. Make sure the old currency exists and the new currency name '%new_currency_name%' is available."
currency_renamed: "&aCurrency '%old_currency_name%' renamed to '%new_currency_name%' successfully."
error_adding_currency: "&cAn error occurred while adding the currency."
error_listing_currencies: "&cAn error occurred while listing currencies."
error_renaming_currency: "&cAn error occurred while renaming the currency."
error_removing_currency: "&cAn error occurred while removing the currency."
error_processing_command: "&cAn error occurred while processing the command."
give_recipient: "&aYou have been given &e%amount% %currency_display_name% &aby &c%player_name%&a."
give_sender: "&eYou have given &a%player_name% &e%amount% %currency_display_name%&e."
help: |
&eCurrency Plugin Commands:
&e/currency add <name> <displayName> <symbol>
&e/currency balance [currencyName]
&e/currency give <currencyName> <playerName> <amount>
&e/currency list
&e/currency pay <playerName> <currencyName> <amount>
&e/currency reload
&e/currency remove <name>
&e/currency rename <oldName> <newName> <newDisplayName> <newSymbol>
&e/currency set <currencyName> <playerName> <amount>
&e/currency take <currencyName> <playerName> <amount>
invalid_amount: "&cError: Invalid amount. Please enter a valid whole number."
invalid_subcommand: "&cInvalid subcommand."
invalid_usage_add: "&cUsage: /currency add <name> <displayName> <symbol>"
invalid_usage_give: "&eUsage: &a/currency give <currencyName> <playerName> <amount>"
invalid_usage_pay: "&eUsage: &a/currency pay <playerName> <currencyName> <amount>"
invalid_usage_remove: "&cUsage: /currency remove <name>"
invalid_usage_rename: "&cUsage: /currency rename <oldName> <newName> <newDisplayName> <newSymbol>"
invalid_usage_set: "&eUsage: &a/currency set <currencyName> <playerName> <amount>"
help_no_op: |
&eCurrency Plugin Commands:
&e/currency balance [currencyName]
&e/currency pay <playerName> <currencyName> <amount>"
no_currencies_available: "&f No currencies available."
no_money_in_any_currency: "&eYou don't have any money in any currency."
no_permission_add: "&cYou do not have permission to add currencies."
no_permission_give: "&cYou don't have permission to give currency."
no_permission_reload: "&cYou do not have permission to reload the currency."
no_permission_remove: "&cYou do not have permission to remove currencies."
no_permission_rename: "&cYou do not have permission to rename currencies."
no_permission_set: "&cYou do not have permission to set the currency."
no_permission_take: "You don't have permission to take currency."
no_permission_view: "&cYou do not have permission to view balances."
no_money_in_currency: "&eYou don't have any money in %currency_name%."
no_permission_pay: "&cYou do not have permission to pay currency."
no_permission_check: "&cYou do not have permission to check balances."
no_player_specified: "&cNo player specified."
no_players_found: "&cNo players found."
no_recipient_specified: "&cNo recipient specified."
no_player_balance: "&cPlayer '%player_name%' has no money in any currency."
no_permission: "&cYou don't have permission to do that."
no_permission_check_other: "&cYou do not have permission to check others' balances."
player_not_exist: "&cPlayer '%player_name%' does not exist."
player_offline: "&cPlayer '%player_name%' is offline."
player_only_command: "&eThis command can only be executed by players."
player_not_found: "&cPlayer '%player_name%' not found."
plugin_reloaded: "&aPlugin reloaded successfully."
prefix: "&7[Currency]"
take_recipient: "&c%amount% %currency_display_name% has been taken from you by %sender%."
take_sender: "&aYou have taken &e%amount% %currency_display_name%&a from %player_name%."
take_usage: "Usage: /currency take <currencyName> <playerName> <amount>"
unknown_command: "&fUnknown command. Type \"%help_command%\" for help."
currency balance messages fixed!
As per the announcement in my discord (
https://discord.gg/RURukbUJVh)
+ Help no longer generating in config.yml
+ currency_list added
+ %symbol% fixed
+ added %player_name% into recipient_received
+ balance_single_currency fixed (i literally just forgot to add "symbol" im stupid)
+ Starting Balance in config.yml:
+ /currency reload now reloads the messages file
starting-balance: diamond: 100 emerald: 50 configure it to your needs Also, messages.yml sucks right now so DEFINITELY configure the messages or your eyes will hurt
Instead of the messages in config.yml, they are now in messages.yml
New placeholderapi placeholder:
%currency_symbol_<currencyName%
new placeholders in the file:
`prefix`: No placeholders.
`help_no_op`: No placeholders.
`invalid_subcommand`: No placeholders.
`no_permission_reload`: No placeholders.
`plugin_reloaded`: No placeholders.
`help`: No placeholders.
`invalid_usage_add`: No placeholders.
`currency_already_exists`: %currency_name%
`currency_added`: %currency_name%, %currency_display_name%, %symbol%
`error_adding_currency`: No placeholders.
`no_permission_remove`: No placeholders.
`invalid_usage_remove`: No placeholders.
`currency_removed`: %currency_name%
`error_removing_currency`: No placeholders.
`no_permission_list`: No placeholders.
`no_currencies_available`: No placeholders.
`currency_entry`: %display_name%, %symbol%
`error_listing_currencies`: No placeholders.
`no_permission_rename`: No placeholders.
`invalid_usage_rename`: No placeholders.
`currency_renamed`: %old_currency_name%, %new_currency_name%, %currency_display_name%, %symbol%
`error_renaming_currency`: No placeholders.
`no_permission_give`: No placeholders.
`invalid_usage_give`: No placeholders.
`recipient_received`: %amount%, %currency_display_name%
`giver_sent`: %player_name%, %amount%, %currency_display_name%
`insufficient_funds`: %currency_display_name%
`currency_not_exist`: %currency_name%
`invalid_usage_pay`: No placeholders.
`taken_currency`: %amount%, %currency_display_name%, %player_name%
`error_processing_command`: No placeholders.
`player_only_command`: No placeholders.
`no_money_in_any_currency`: No placeholders.
`balance_single_currency`: %s, %currency_name%, %balance%
Here is messages.yml:
messages:
prefix: "&bPrekoyte's Currency &8» &7"
balance_single_currency: "&e%s balance for %currency_name%: %balance%"
currency_added: "&aCurrency '%currency_name%' added successfully."
currency_already_exists: "&cThe currency '%currency_name%' already exists."
currency_entry: "&e- %display_name% (%symbol%)"
currency_not_exist: "&cCurrency '%currency_name%' does not exist."
currency_removed: "&aCurrency '%currency_name%' removed successfully."
currency_renamed: "&aCurrency '%old_currency_name%' renamed to '%new_currency_name%' successfully."
error_adding_currency: "&cAn error occurred while adding the currency."
error_listing_currencies: "&cAn error occurred while listing currencies."
error_processing_command: "&cAn error occurred while processing the command."
error_renaming_currency: "&cAn error occurred while renaming the currency."
error_removing_currency: "&cAn error occurred while removing the currency."
giver_sent: "&eYou have given &a%player_name% &e%amount% %currency_display_name%&e."
help: >
&eCurrency Plugin Commands:
&e/currency add <name> <displayName> <symbol>
&e/currency remove <name>
&e/currency list
&e/currency rename <oldName> <newName> <newDisplayName> <newSymbol>
&e/currency give <currencyName> <playerName> <amount>
&e/currency take <currencyName> <playerName> <amount>
&e/currency balance [currencyName]
&e/currency pay <playerName> <currencyName> <amount>
&e/currency reload
help_no_op: "&cYou don't have permission to use this command."
insufficient_funds: "&cInsufficient funds."
invalid_subcommand: "&cInvalid subcommand."
invalid_usage_add: "&cUsage: /currency add <name> <displayName> <symbol>"
invalid_usage_give: "&eUsage: /currency give <currencyName> <playerName> <amount>"
invalid_usage_pay: "&eUsage: /currency pay <playerName> <currencyName> <amount>"
invalid_usage_remove: "&cUsage: /currency remove <name>"
invalid_usage_rename: "&cUsage: /currency rename <oldName> <newName> <newDisplayName> <newSymbol>"
message_prefix: "&7[Currency]"
no_currencies_available: "&f No currencies available."
no_money_in_any_currency: "&e──&6❂&e── &fNo Money in Any Currency &e──&6❂&e──"
no_permission_give: "&cYou do not have permission to give currency."
no_permission_list: "&cYou do not have permission to list currencies."
no_permission_reload: "&cYou do not have permission to reload the plugin."
no_permission_remove: "&cYou do not have permission to remove currencies."
no_permission_rename: "&cYou do not have permission to rename currencies."
player_only_command: "&eThis command can only be executed by players."
plugin_reloaded: "&aPlugin reloaded successfully."
recipient_received: "&aYou have been given &e%amount% %currency_display_name%&a."
taken_currency: "&aYou have taken &e%amount% %currency_display_name%&a from %player_name%."
Admin commands now work on offline players.
/currency balance <currencyName> <playerName>
/currency give <currencyName> <playerName>
/currency take... etc
but NOT:
/currency pay... so as to prevent players from losing their money because of a typo
Hi!
As requested by
@itzrobotix
- You can now check the balance of a player by simply doing
- /currency balance <currencyName> <playerName>
- You can also change the custom messages, but if the message isn't found or doesn't exist, it uses a default message and it generates it back into the config.yml
Now you can define all the custom messages you want!
messages:
prefix: "&bPrekoyte's Currency &c>> "
op_only_command: "&cYou do not have permission to use this command."
player_only_command: "&eThis command can only be executed by players."
invalid_subcommand: "&cInvalid subcommand. For help, use: &e/currency help"
unknown_command: "&fUnknown command. Type \"%help_command%\" for help."
help: "&eCurrency Plugin Commands:\n&e/currency add <name> <displayName> <symbol>\n&e/currency remove <name>\n&e/currency list\n&e/currency rename <oldName> <newName> <newDisplayName> <newSymbol>\n&e/currency give <currencyName> <playerName> <amount>\n&e/currency take <currencyName> <playerName> <amount>\n&e/currency balance [currencyName]"
help_no_op: "&eCurrency Plugin Commands:\n&e/currency pay <player> <currency> <amount>\n&e/currency balance (optional: <currency>)"
error_processing_command: "&cAn error occurred while processing the command."
error_listing_currencies: "&cAn error occurred while listing currencies."
error_renaming_currency: "&c An error occurred while renaming the currency."
error_adding_currency: "&c An error occurred while adding the currency."
error_removing_currency: "&c An error occurred while removing the currency."
no_permission_rename: "&c You do not have permission to rename currencies."
no_permission_give: "&cYou don't have permission to give currency."
no_permission_take: "&cStop stealing!"
no_permission_add: "&c You do not have permission to add currencies."
no_permission_remove: "&c You do not have permission to remove currencies."
no_money_in_any_currency: "&e──&6❂&e── &fNo Money in Any Currency &e──&6❂&e──"
balance_header: "&bYour Balances:"
no_currency_balance: "&dNo money in any currency."
no_currencies_available: "&f No currencies available."
invalid_usage_rename: "&c Usage: /currency rename <oldName> <newName> <newDisplayName> <newSymbol>"
invalid_usage_give: "&eUsage: &a/currency give <currencyName> <playerName> <amount>"
invalid_usage_pay: "&eUsage: &a/currency pay <playerName> <currencyName> <amount>"
invalid_usage_take: "&eUsage: &a/currency take <currencyName> <playerName> <amount>"
invalid_usage_add: "&c Usage: /currency add <name> <displayName> <symbol>"
invalid_usage_remove: "&c Usage: /currency remove <name>"
invalid_amount: "&cError: Invalid amount. Please enter a valid whole number."
currency_not_exist: "&cCurrency '%currency_name%' does not exist."
taken_currency: "&aSuccessfully taken &e%amount% %currency_display_name%&a from &6%player_name%&a."
recipient_received: "&aYou have been given &e%amount% %currency_display_name%&a."
giver_sent: "&eYou have given &a%player_name% &e%amount% %currency_display_name%&e."
given_currency: "&aYou have given &e%player_name% &6%amount% &a%currency_name%&a."
balance_single_currency: "&eYour balance for %currency_name%: %balance%"
rename_success: "&bCurrency '&a%old_name%&b' has been renamed to '&a%new_name%&b' successfully."
rename_exists: "&cError: Currency '%new_name%' already exists, or '%old_name%' does not exist."
no_permission_reload: "&cYou do not have permission to reload the plugin."
plugin_reloaded: "&aCurrency plugin has been reloaded."
error_reloading_plugin: "&cAn error occurred while reloading the plugin. Kinda weird. Report to prekoyte on discord."
title says it all
The placeholder added is
%currency_balance_<currencyName>%
there also is %currency_balance% I guess, but that is the sum of all currencies and is kinda useless