-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/richest command display broken using currency schema #52
Labels
bug
Something isn't working
Comments
This output is just not possible according to the code logic here.
Can you provide further steps to reproduce the issue, e.g. a database dump? |
Configurations: schema:
type: currency
currencies:
money:
default: 100
min: 0
max: 100000000
import-from: ~
money2:
default: 100
min: 0
max: 100000000
import-from: ~
term: currency
default-currency: money
analytics:
player-infos:
money:
of: account
selector:
currency: money
metric: balance-sum
update-freuqency: 5
info-commands:
checkmoney:
description: Check money of yourself or another player
self-requires-op: false
other-requires-op: true
format: '{name} has ${money}.'
top-player-commands:
richest:
command:
description: Displays the richest player
requires-op: false
selector:
currency: money
ordering: desc
metric: balance-sum
refresh:
batch-size: 200
batch-frequency: 10
recompute-frequency: 1
pagination:
per-page: 5
limit: 5
messages:
header: Showing page {page} of {totalPages}
entry: '#{rank} {name}: ${value}'
footer: ""
transfer:
payment-commands:
pay:
description: Pays another player
requires-op: false
selector:
default-currency: money
allowed-currencies: ~
rate: 1
minimum-amount: 0
maximum-amount: ~
fee: 0
transaction-labels:
payment: ""
messages:
player-only-command: '{red}Only players may use this command.'
notify-sender-success: '{green}You have sent ${sentAmount} to {target}. You now have ${sender money} left.'
notify-recipient-success: '{green}You have received ${receivedAmount} from {sender}. You now have ${target money} left.'
underflow: '{red}You do not have ${sentAmount}.'
overflow: '{red}The accounts of {target} are full. They cannot fit in ${sentAmount} more.'
internal-error: '{red}An internal error occurred. Please try again.'
add-money-commands:
addmoney:
description: Add money to a player
requires-op: true
minimum-amount: 0
maximum-amount: ~
transaction-labels:
operator: ""
messages:
player-only-command: '{red}Only players may use this command.'
notify-sender-success: '{green}{target} has received ${receivedAmount}. They now have ${target money} left.'
notify-recipient-success: '{green}You have received ${receivedAmount}. You now have ${target money} left.'
underflow: '{red}An internal error occurred.'
overflow: '{red}{target} cannot fit ${receivedAmount} more money.'
internal-error: '{red}An internal error occurred. Please try again.'
take-money-commands:
takemoney:
description: Remove money from a player
requires-op: true
minimum-amount: 0
maximum-amount: ~
transaction-labels:
operator: ""
messages:
player-only-command: '{red}Only players may use this command.'
notify-sender-success: '{green}You have taken ${receivedAmount} from {target}. They now have ${target money} left.'
notify-recipient-success: '{green}An admin took ${sentAmount} from you. You now have ${target money} left.'
underflow: '{red}{target} does not have ${sentAmount}.'
overflow: '{red}An internal error occurred.'
internal-error: '{red}An internal error occurred. Please try again.'
migration:
enabled: false Commands executed:
database:
|
database dump: capital.txt |
The query executed when the command execution and its result SELECT group_value,
metric,
(SELECT t0.value
FROM capital_acc_label AS t0
WHERE grouping_label.id = t0.id
AND t0.name = "capital/playerName"
LIMIT 1) AS display_0
FROM capital_analytics_top_cache
INNER JOIN capital_acc_label AS grouping_label
ON capital_analytics_top_cache.group_value = grouping_label.value
WHERE query = "54c2e6f2efb1745fe2604cb6e12eed87"
AND grouping_label.name = "capital/playerUuid"
ORDER BY metric DESC
LIMIT 0, 5
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the currency schema to set up multiple currencies and using the
/richest
command, the rank numbers are not correct.The text was updated successfully, but these errors were encountered: