mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-29 05:26:16 +01:00
Add more usage translations for commands.
This commit is contained in:
parent
a017083664
commit
c8ba25058e
@ -8,6 +8,7 @@ import org.appledash.saneeconomy.utils.MessageUtils;
|
|||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import static org.appledash.saneeconomy.utils.I18n._;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by AppleDash on 6/13/2016.
|
* Created by AppleDash on 6/13/2016.
|
||||||
@ -36,7 +37,7 @@ public abstract class SaneEconomyCommand implements CommandExecutor {
|
|||||||
|
|
||||||
|
|
||||||
for (String s : getUsage()) {
|
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) {
|
} catch (CommandException e) {
|
||||||
MessageUtils.sendMessage(sender, e.getMessage());
|
MessageUtils.sendMessage(sender, e.getMessage());
|
||||||
|
@ -30,3 +30,10 @@ messages:
|
|||||||
- message: "There aren't enough players to display that page."
|
- message: "There aren't enough players to display that page."
|
||||||
- message: "[{1:02d}] {2} - {3}"
|
- message: "[{1:02d}] {2} - {3}"
|
||||||
- message: "Too few arguments for that command!"
|
- 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user