Add more usage translations for commands.

This commit is contained in:
AppleDash 2017-01-22 12:52:35 -05:00
parent a017083664
commit c8ba25058e
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import org.appledash.saneeconomy.utils.MessageUtils;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import static org.appledash.saneeconomy.utils.I18n._;
/**
* Created by AppleDash on 6/13/2016.
@ -36,7 +37,7 @@ public abstract class SaneEconomyCommand implements CommandExecutor {
for (String s : getUsage()) {
MessageUtils.sendMessage(sender, "Usage: {1}", s.replace("<command>", label));
MessageUtils.sendMessage(sender, _("Usage: {1}"), _(s).replace("<command>", label));
}
} catch (CommandException e) {
MessageUtils.sendMessage(sender, e.getMessage());

View File

@ -30,3 +30,10 @@ messages:
- message: "There aren't enough players to display that page."
- message: "[{1:02d}] {2} - {3}"
- message: "Too few arguments for that command!"
- message: "Usage: {1}"
- message: "/pay <player> <amount>"
- message: "/<command> [player]"
- message: "/<command>"
- message: "/<command> <page>"
- message: "/<command> <give/take/set> [player] <amount>"
- message: "/<command> reload-database"