Language file update

Former-commit-id: d651989f17e8f635f8c6521a1dc069de0c360cb0 [formerly 66b4ce2c265aec72900041bd28bc017a7a5a1cc9]
Former-commit-id: 75a5e0ea50019f05199d40b924bac4fcb13d1d1f
This commit is contained in:
Ghost_chu committed 2019-07-05 14:47:23 +08:00
1 parent e7ace40d83
commit ed7e9d5c9a
5 files changed
+23 -7

No files matched your search

@@ -32,7 +32,7 @@ public class CommandManager implements TabCompleter, CommandExecutor {
.executor(new SubCommand_SilentUnlimited()).build());
registerCmd(CommandContainer.builder().prefix("setowner").permission("quickshop.setowner")
.executor(new SubCommand_SetOwner()).build());
registerCmd(CommandContainer.builder().prefix("owner").permission("quickshop.setowner")
registerCmd(CommandContainer.builder().prefix("owner").hidden(true).permission("quickshop.setowner")
.executor(new SubCommand_SetOwner()).build());
registerCmd(CommandContainer.builder().prefix("amount").permission(null).executor(new SubCommand_Amount()).build());
registerCmd(CommandContainer.builder().prefix("buy").permission("quickshop.create.buy").executor(new SubCommand_Buy())
@@ -23,14 +23,14 @@ public class SubCommand_Amount implements CommandProcesser {
@Override
public void onCommand(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] cmdArg) {
if (cmdArg.length < 1) {
sender.sendMessage("Missing amount");
sender.sendMessage(MsgUtil.getMessage("command.wrong-args"));
return;
}
if (sender instanceof Player) {
final Player player = (Player) sender;
if (!plugin.getShopManager().getActions().containsKey(player.getUniqueId())) {
sender.sendMessage("You do not have any pending action!");
sender.sendMessage(MsgUtil.getMessage("no-pending-action"));
return;
}
plugin.getShopManager().handleChat(player, cmdArg[0]);
@@ -29,7 +29,7 @@ public class SubCommand_Help implements CommandProcesser {
for (CommandContainer container : plugin.getCommandManager().getCmds()) {
if (container.getPermission() == null || container.getPermission().isEmpty() || s.hasPermission(container
.getPermission())) {
if (!MsgUtil.getMessage("command.description." + container.getPrefix()).equals(MsgUtil.invaildMsg))
if (!container.isHidden())
s.sendMessage(ChatColor.GREEN + "/" + commandLabel + " " + container
.getPrefix() + ChatColor.YELLOW + " - "
+ MsgUtil.getMessage("command.description." + container.getPrefix()));
@@ -273,7 +273,17 @@ public class MsgUtil {
selectedVersion = 16;
messagei18n.save(messageFile);
}
if (selectedVersion == 16) {
messagei18n.set("command.description.owner", "&eChanges who owns a shop");
messagei18n.set("command.description.remove", "&eRemove your looking the shop");
messagei18n.set("command.description.amount", "&eExecute for your actions with amount(For chat plugin issue)");
messagei18n.set("command.description.about", "&eShow QuickShop abouts");
messagei18n.set("command.description.help", "&eShow QuickShop helps");
messagei18n.set("no-pending-action", "&cYou do not have any pending action");
messagei18n.set("language-version", 17);
selectedVersion = 17;
messagei18n.save(messageFile);
}
}
+8 -2
View File
@@ -11,7 +11,7 @@ translation-version: "&c&lSupport Version: &b&lReremake"
translation-country: "&c&lLanguage Zone: &b&lEnglish (en_US)"
# ======================================================================
language-version: 16
language-version: 17
not-looking-at-shop: "&cNo QuickShop was found, you must be looking at one."
no-anythings-in-your-hand: "&cThere is nothing in your hand."
@@ -74,7 +74,7 @@ no-permission-build: "&cYou can't build a shop here."
success-change-owner-to-server: "&aSuccessfully set the shop owner to Server."
flush-finished: "&aSuccessfully flushed the messages."
purchase-failed: "&cPurchase failed: Internal Error, please contact the server administrator."
no-pending-action: "&cYou do not have any pending action"
menu:
successful-purchase: "&aSuccessfully Purchased:"
@@ -127,6 +127,7 @@ command:
title: "&aQuickShop Help"
unlimited: "&eMakes a shop unlimited"
setowner: "&eChanges who owns a shop"
owner: "&eChanges who owns a shop"
buy: "&eConverts a shop to &dBUY&e mode"
sell: "&eConverts a shop to &bSELL&e mode"
clean: "&eRemoves all (loaded) shops with 0 stock"
@@ -141,6 +142,11 @@ command:
info: "&eShow QuickShop Statistics"
paste: "&eAuto upload server data to Pastebin"
staff: "&eManage your shop staffs"
remove: "&eRemove your looking the shop"
amount: "&eExecute for your actions with amount(For chat plugin issue)"
about: "&eShow QuickShop abouts"
help: "&eShow QuickShop helps"
signs:
header: "&c{0}"
selling: "Selling {0}"