Different message for /bal on self, and add a missing translation.

This commit is contained in:
AppleDash 2017-01-22 12:49:01 -05:00
parent 2dcc2cb2de
commit a017083664
2 changed files with 22 additions and 16 deletions

View File

@ -63,6 +63,10 @@ public class BalanceCommand extends SaneEconomyCommand {
return;
}
if (sender == player) {
MessageUtils.sendMessage(sender, "Your balance is {1}.", saneEconomy.getEconomyManager().getFormattedBalance(Economable.wrap(player)));
} else {
MessageUtils.sendMessage(sender, "Balance for {1} is {2}.", playerName, saneEconomy.getEconomyManager().getFormattedBalance(Economable.wrap(player)));
}
}
}

View File

@ -7,24 +7,26 @@
# IMPORTANT: If your translation has a colon ( : ) character inside of it, you must enclose the entire part after "message: " in single quotes ( ' ).
# If this file doesn't work for some reason, check your console for errors with "SnakeYAML" included in them.
messages:
- message: You don't have permission to check the balance of {1}.
- message: That player is not online.
- message: You cannot pay yourself.
- message: "You don't have permission to check the balance of {1}."
- message: "That player is not online."
- message: "You cannot pay yourself."
- message: "Usage: {1}"
- message: That player does not exist.
- message: Balance for {1} is {2}.
- message: "That player does not exist."
- message: "Your balance is {1}."
- message: "Balance for {1} is {2}."
- message: "Top {1} players on page {2}:"
- message: That player does not exist.
- message: "That player does not exist."
- message: "{1} is not a positive number."
- message: Added {1} to {2}. Their balance is now {3}.
- message: Took {1} from {2}. Their balance is now {3}.
- message: Balance for {1} set to {2}.
- message: You do not have enough money to transfer {1} to {2}.
- message: You have transferred {1} to {2}.
- message: You have received {1} from {2}.
- message: Reloading database...
- message: Database reloaded.
- message: You've been issued a starting balance of {1}!
- message: "Added {1} to {2}. Their balance is now {3}."
- message: "Took {1} from {2}. Their balance is now {3}."
- message: "Balance for {1} set to {2}."
- message: "You do not have enough money to transfer {1} to {2}."
- message: "You have transferred {1} to {2}."
- message: "You have received {1} from {2}."
- message: "Reloading database..."
- message: "Database reloaded."
- message: "You've been issued a starting balance of {1}!"
- message: "{1} is not a valid number."
- message: "There aren't enough players to display that page."
- message: "[{1:02d}] {2} - {3}"
- message: "Too few arguments for that command!"