diff --git a/README.md b/README.md index 00712b231..d8c48f5c3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ --- [![JoinDiscord](https://img.shields.io/badge/join-discord-blue.svg) ![Chatting](https://img.shields.io/discord/471882534712639488)](https://discord.gg/bfefw2E) -![Java](https://img.shields.io/badge/java-version%208%2B%20(currently%20is%208--15)-orange) +![Java](https://img.shields.io/badge/java-version%208%2B%20(currently%20is%208--17)-orange) ![MC](https://img.shields.io/badge/minecraft-java%20edition%201.13.2%2B-blueviolet) ![Ver](https://img.shields.io/spiget/version/62575?label=version) --- diff --git a/pom.xml b/pom.xml index 6f467643f..a8eca6d94 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ QuickShop - 4.0.8.1 + 4.0.8.2 org.maxgamer.quickshop Ghost-chu UTF-8 @@ -390,7 +390,7 @@ com.griefcraft.lwc LWCX - 2.2.6 + 2.2.7 provided @@ -534,6 +534,14 @@ RELEASE test + + + org.junit.jupiter + junit-jupiter-api + 5.7.2 + test + + com.github.seeseemelk diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 6f4cd71ca..cd837e83c 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -400,7 +400,12 @@ public class QuickShop extends JavaPlugin { if (!Objects.requireNonNull(vault.getVault()).hasAccount(tax)) { try { Util.debugLog("Tax account not exists! Creating..."); - vault.getVault().createPlayerAccount(tax); + getLogger().warning("QuickShop detected tax account not exists, we're trying to create one. If you see any errors, please change tax-account in config.yml to server owner in-game username"); + if (vault.getVault().createPlayerAccount(tax)) { + getLogger().info("Tax account created."); + } else { + getLogger().warning("Cannot to create tax-account, please change tax-account in config.yml to server owner in-game username"); + } } catch (Exception ignored) { } if (!vault.getVault().hasAccount(tax)) { @@ -535,20 +540,28 @@ public class QuickShop extends JavaPlugin { @Override public void onDisable() { - this.integrationHelper.callIntegrationsUnload(IntegrateStage.onUnloadBegin); + if (this.integrationHelper != null) { + this.integrationHelper.callIntegrationsUnload(IntegrateStage.onUnloadBegin); + } getLogger().info("QuickShop is finishing remaining work, this may need a while..."); - calendarWatcher.stop(); + if (calendarWatcher != null) { + calendarWatcher.stop(); + } Util.debugLog("Unloading all shops..."); try { - this.getShopManager().getLoadedShops().forEach(Shop::onUnload); + if (this.getShopManager() != null) { + this.getShopManager().getLoadedShops().forEach(Shop::onUnload); + } } catch (Exception ignored) { } // this.reloadConfig(); Util.debugLog("Calling integrations..."); - integrationHelper.callIntegrationsUnload(IntegrateStage.onUnloadAfter); + if (integrationHelper != null) { + integrationHelper.callIntegrationsUnload(IntegrateStage.onUnloadAfter); + integrationHelper.unregisterAll(); + } compatibilityTool.unregisterAll(); - integrationHelper.unregisterAll(); Util.debugLog("Cleaning up resources and unloading all shops..."); /* Remove all display items, and any dupes we can find */ @@ -572,11 +585,14 @@ public class QuickShop extends JavaPlugin { Util.debugLog("Cleanup tasks..."); AsyncPacketSender.stop(); + if (sentryErrorReporter != null) { + sentryErrorReporter.unregister(); + } + try { Bukkit.getScheduler().cancelTasks(this); } catch (Throwable ignored) { } - Util.debugLog("All shutdown work is finished."); } @@ -625,7 +641,7 @@ public class QuickShop extends JavaPlugin { private void runtimeCheck(@NotNull EnvCheckEntry.Stage stage) { environmentChecker = new org.maxgamer.quickshop.util.envcheck.EnvironmentChecker(this); - ResultReport resultReport = environmentChecker.run(); + ResultReport resultReport = environmentChecker.run(stage); if (resultReport.getFinalResult().ordinal() > CheckResult.WARNING.ordinal()) { StringJoiner joiner = new StringJoiner("\n", "", ""); for (Entry result : resultReport.getResults().entrySet()) { @@ -1715,6 +1731,12 @@ public class QuickShop extends JavaPlugin { //Util.makeExportBackup("update-autobackup-" + UUID.randomUUID()); //Util.backupDatabase(); } + if (selectedVersion == 128) { + getConfig().set("shop.force-use-item-original-name", false); + getConfig().set("integration.griefprevention.delete-on-untrusted", false); + getConfig().set("config-version", ++selectedVersion); + } + if (getConfig().getInt("matcher.work-type") != 0 && GameVersion.get(ReflectFactory.getServerVersion()).name().contains("1_16")) { getLogger().warning("You are not using QS Matcher, it may meeting item comparing issue mentioned there: https://hub.spigotmc.org/jira/browse/SPIGOT-5063"); diff --git a/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java b/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java index 27962e274..ad405654c 100644 --- a/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java +++ b/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java @@ -20,119 +20,98 @@ package org.maxgamer.quickshop.api; import lombok.AllArgsConstructor; +import org.apache.commons.compress.utils.Lists; import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.World; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; +import org.bukkit.block.Block; import org.maxgamer.quickshop.QuickShop; import org.maxgamer.quickshop.shop.Shop; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.UUID; +import java.util.*; +import java.util.stream.Collectors; @AllArgsConstructor public class ShopAPI { private final QuickShop plugin; /** - * Gets shop from location + * Gets the shops on this server * - * @param location The location - * @return The shop in that location, may be null + * @return All shops included unloaded and loaded */ - public @Nullable Shop getShop(@NotNull Location location) { - return plugin.getShopManager().getShop(location, false); + public List getAllShops() { + return plugin.getShopManager().getAllShops(); } /** - * Gets shop from location with caching + * Gets the shops that loaded * - * @param location The location - * @return The shop in that location, may be null + * @return The loaded shops */ - public @Nullable Shop getShopWithCaching(@NotNull Location location) { - if (plugin.getShopCache() == null) { - return getShop(location); - } - return plugin.getShopCache().getCaching(location, false); - } - - /** - * Gets shops in chunk - * - * @param chunk The chunk - * @return The shops in chunk, may be null - */ - public @Nullable Map getShop(@NotNull Chunk chunk) { - return plugin.getShopManager().getShops(chunk); - } - - /** - * Gets shop from location - * - * @param location The location - * @return The shop in that location, may be null - */ - public @Nullable Shop getShopIncludeAttached(@NotNull Location location) { - return plugin.getShopManager().getShopIncludeAttached(location); - } - - /** - * Gets shop from location and use caching - * - * @param location The location - * @return The shop in that location, may be null - */ - public @Nullable Shop getShopIncludeAttachedWithCaching(@NotNull Location location) { - if (plugin.getShopCache() == null) { - return getShopIncludeAttached(location); - } - return plugin.getShopCache().getCaching(location, true); - } - - /** - * Gets a list of copy for loaded shops - * - * @return The copy of loaded shops - */ - public @NotNull List getLoadedShops() { + public List getLoadedShops() { return new ArrayList<>(plugin.getShopManager().getLoadedShops()); } /** - * Gets a list of copy a player's all shops - * This is a expensive action, please caching the result + * Gets shops in specific world * - * @param uuid Player UUID - * @return The list of player's all shops + * @param world world + * @return The shops in specific world */ - public @NotNull List getPlayerAllShops(@NotNull UUID uuid) { - return new ArrayList<>(plugin.getShopManager().getPlayerAllShops(uuid)); + public List getShops(World world) { + return plugin.getShopManager().getShopsInWorld(world); } /** - * Gets a list of copy all shops on this server - * This is a expensive action, please caching the result + * Gets shops owned by specific player * - * @return The list of all shops on server + * @param player shop owner + * @return The shops owned by specific player */ - public @NotNull List getAllShops() { - return new ArrayList<>(plugin.getShopManager().getAllShops()); + public List getShops(UUID player) { + return plugin.getShopManager().getPlayerAllShops(player); } /** - * Gets a list of copy all shops in world - * This is a expensive action, please caching the result + * Gets shops owned by specific player and in specific world * - * @param world The world that you want get shops - * @return The list of all shops in world + * @param world world + * @param player shop owner + * @return shop collection */ - public @NotNull List getShopsInWorld(@NotNull World world) { - return new ArrayList<>(plugin.getShopManager().getShopsInWorld(world)); + public List getShops(World world, UUID player) { + return plugin.getShopManager().getPlayerAllShops(player).stream().filter(shop -> Objects.requireNonNull(shop.getLocation().getWorld()).equals(world)).collect(Collectors.toList()); } + /** + * Gets shops in specific chunk + * + * @param chunk the chunk + * @return The clone list of shops in this chunk + */ + public List getShops(Chunk chunk) { + Map mapping = plugin.getShopManager().getShops(chunk); + return mapping == null ? Lists.newArrayList() : new ArrayList<>(mapping.values()); + } + /** + * Check if block is a shop and get it + * + * @param block The block + * @return Shop object if target is a shop otherwise Optional.empty + */ + public Optional getShop(Block block) { + return Optional.ofNullable(plugin.getShopManager().getShopIncludeAttached(block.getLocation())); + } + + /** + * Check if location block is a shop and get it + * + * @param location The block location + * @return Shop object if target is a shop otherwise Optional.empty + */ + public Optional getShop(Location location) { + return Optional.ofNullable(plugin.getShopManager().getShopIncludeAttached(location)); + } } diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Refill.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Refill.java index 6a6721331..d23e0de49 100644 --- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Refill.java +++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Refill.java @@ -20,6 +20,7 @@ package org.maxgamer.quickshop.command.subcommand; import lombok.AllArgsConstructor; +import org.apache.commons.lang.StringUtils; import org.bukkit.block.Block; import org.bukkit.command.CommandSender; import org.bukkit.entity.LivingEntity; @@ -52,14 +53,7 @@ public class SubCommand_Refill implements CommandProcesser { return; } - final int add; - - try { - add = Integer.parseInt(cmdArg[0]); - } catch (NumberFormatException e) { - MsgUtil.sendMessage(sender, MsgUtil.getMessage("thats-not-a-number", sender)); - return; - } + int add; final BlockIterator bIt = new BlockIterator((LivingEntity) sender, 10); @@ -67,15 +61,22 @@ public class SubCommand_Refill implements CommandProcesser { MsgUtil.sendMessage(sender, MsgUtil.getMessage("not-looking-at-shop", sender)); return; } - while (bIt.hasNext()) { final Block b = bIt.next(); final Shop shop = plugin.getShopManager().getShop(b.getLocation()); - if (shop == null) { continue; } - + if (StringUtils.isNumeric(cmdArg[0])) { + add = Integer.parseInt(cmdArg[0]); + } else { + if (cmdArg[0].equals(plugin.getConfig().getString("shop.word-for-trade-all-items"))) { + add = shop.getRemainingSpace(); + } else { + MsgUtil.sendMessage(sender, MsgUtil.getMessage("thats-not-a-number", sender)); + return; + } + } shop.add(shop.getItem(), add); MsgUtil.sendMessage(sender, MsgUtil.getMessage("refill-success", sender)); return; diff --git a/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java b/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java index 7df05aa33..8de87ba4a 100644 --- a/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java +++ b/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java @@ -21,18 +21,22 @@ package org.maxgamer.quickshop.integration.griefprevention; import me.ryanhamshire.GriefPrevention.Claim; import me.ryanhamshire.GriefPrevention.GriefPrevention; +import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; import org.jetbrains.annotations.NotNull; import org.maxgamer.quickshop.QuickShop; import org.maxgamer.quickshop.integration.IntegrateStage; import org.maxgamer.quickshop.integration.IntegrationStage; import org.maxgamer.quickshop.integration.QSIntegratedPlugin; +import org.maxgamer.quickshop.shop.Shop; import java.util.ArrayList; import java.util.List; +import java.util.Map; @IntegrationStage(loadStage = IntegrateStage.onEnableAfter) public class GriefPreventionIntegration extends QSIntegratedPlugin { @@ -40,11 +44,13 @@ public class GriefPreventionIntegration extends QSIntegratedPlugin { private final List createLimits = new ArrayList<>(3); private final List tradeLimits = new ArrayList<>(3); private final boolean whiteList; + private final boolean deleteOnUntrusted; public GriefPreventionIntegration(QuickShop plugin) { super(plugin); ConfigurationSection configurationSection = plugin.getConfig(); this.whiteList = configurationSection.getBoolean("integration.griefprevention.whitelist-mode"); + deleteOnUntrusted = configurationSection.getBoolean("integration.griefprevention.delete-on-untrusted"); createLimits.addAll(toFlags(configurationSection.getStringList("integration.griefprevention.create"))); tradeLimits.addAll(toFlags(configurationSection.getStringList("integration.griefprevention.trade"))); } @@ -92,14 +98,53 @@ public class GriefPreventionIntegration extends QSIntegratedPlugin { return true; } + @EventHandler(ignoreCancelled = true) + public void onUntrusted(me.ryanhamshire.GriefPrevention.events.TrustChangedEvent event) { + if (!deleteOnUntrusted) { + return; + } + if (event.isGiven()) { + return; + } + + for (Claim claim : event.getClaims()) { + for (Chunk chunk : claim.getChunks()) { + Map shops = plugin.getShopManager().getShops(chunk); + if (shops != null) { + for (Shop shop : shops.values()) { + if (shop.getOwner().equals(claim.getOwnerID())) { + return; + } + //https://github.com/TechFortress/GriefPrevention/blob/e63d1d9e513f48aa0aaa81f154de01626248b7fe/src/main/java/me/ryanhamshire/GriefPrevention/events/TrustChangedEvent.java#L104 + if (event.getIdentifier().equals(shop.getOwner().toString())) { //Single + plugin.log("[SHOP DELETE] GP Integration: Single delete #" + event.getIdentifier()); + shop.delete(); + return; + } + + if (event.getIdentifier().contains(shop.getOwner().toString())) { //Group + plugin.log("[SHOP DELETE] GP Integration: Group delete #" + event.getIdentifier()); + shop.delete(); + return; + } + if (event.getIdentifier().equals("all") || event.getIdentifier().equals("public")) { //All + plugin.log("[SHOP DELETE] GP Integration: All/Public delete #" + event.getIdentifier()); + shop.delete(); + return; + } + } + } + } + } + } @Override public void load() { - + this.registerListener(); } @Override public void unload() { - + this.unregisterListener(); } enum Flag { diff --git a/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV4.java b/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV4.java index 985d1a665..119b5a1a3 100644 --- a/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV4.java +++ b/src/main/java/org/maxgamer/quickshop/integration/plotsquared/PlotSquaredIntegrationV4.java @@ -129,12 +129,12 @@ public class PlotSquaredIntegrationV4 extends QSIntegratedPlugin implements List return shopsList; } - @EventHandler + @EventHandler(ignoreCancelled = true) public void onPlotDelete(PlotDeleteEvent event) { getShops(event.getPlot()).forEach(Shop::delete); } - @EventHandler + @EventHandler(ignoreCancelled = true) public void onPlotUntrusted(PlayerPlotTrustedEvent event) { if (!deleteUntrusted) { return; diff --git a/src/main/java/org/maxgamer/quickshop/listener/BlockListener.java b/src/main/java/org/maxgamer/quickshop/listener/BlockListener.java index be7bf08d2..69076fe41 100644 --- a/src/main/java/org/maxgamer/quickshop/listener/BlockListener.java +++ b/src/main/java/org/maxgamer/quickshop/listener/BlockListener.java @@ -86,13 +86,6 @@ public class BlockListener extends ProtectionListenerBase { return; } -// if (e.isCancelled()) { -// MsgUtil.sendMessage(p, MsgUtil.getMessage("no-permission", p)); -// Util.debugLog("The action was cancelled by other plugin"); -// return; -// } - - // Cancel their current menu... Doesnt cancel other's menu's. final Info action = super.getPlugin().getShopManager().getActions().get(p.getUniqueId()); diff --git a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java index 21d9e7b98..1677db4b4 100644 --- a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java +++ b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java @@ -195,13 +195,13 @@ public class ContainerShop implements Shop { this.displayItem = new RealDisplayItem(this); //do not throw plugin.getLogger().log(Level.SEVERE, - "Failed to initialize VirtualDisplayItem, fallback to RealDisplayItem, are you using the latest version of ProtocolLib?", - e); + "Failed to initialize VirtualDisplayItem, fallback to RealDisplayItem, are you using the latest version of ProtocolLib?", + e); } break; default: Util.debugLog( - "Warning: Failed to create a ContainerShop displayItem, the type we didn't know, fallback to RealDisplayItem"); + "Warning: Failed to create a ContainerShop displayItem, the type we didn't know, fallback to RealDisplayItem"); this.displayItem = new RealDisplayItem(this); break; } @@ -244,7 +244,7 @@ public class ContainerShop implements Shop { update(); if (result) { Util.mainThreadRun(() -> plugin.getServer().getPluginManager() - .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); + .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); } return result; } @@ -259,7 +259,7 @@ public class ContainerShop implements Shop { */ @Override public void buy(@NotNull UUID buyer, @NotNull Inventory buyerInventory, - @NotNull Location loc2Drop, int amount) { + @NotNull Location loc2Drop, int amount) { Util.ensureThread(false); amount = amount * item.getAmount(); if (amount < 0) { @@ -284,16 +284,16 @@ public class ContainerShop implements Shop { // This should not happen. if (amount > 0) { plugin - .getLogger() - .log( - Level.WARNING, - "Could not take all items from a players inventory on purchase! " - + buyer - + ", missing: " - + amount - + ", item: " - + Util.getItemStackName(this.getItem()) - + "!"); + .getLogger() + .log( + Level.WARNING, + "Could not take all items from a players inventory on purchase! " + + buyer + + ", missing: " + + amount + + ", item: " + + Util.getItemStackName(this.getItem()) + + "!"); } } else { Inventory chestInv = this.getInventory(); @@ -331,7 +331,7 @@ public class ContainerShop implements Shop { public void checkDisplay() { Util.ensureThread(false); if (!plugin.isDisplay() || !this.isLoaded || this - .isDeleted()) { // FIXME: Reinit scheduler on reloading config + .isDeleted()) { // FIXME: Reinit scheduler on reloading config return; } @@ -351,12 +351,12 @@ public class ContainerShop implements Shop { Util.debugLog("Warning: DisplayItem is null, this shouldn't happened..."); StackTraceElement traceElements = Thread.currentThread().getStackTrace()[2]; Util.debugLog( - "Call from: " - + traceElements.getClassName() - + "#" - + traceElements.getMethodName() - + "%" - + traceElements.getLineNumber()); + "Call from: " + + traceElements.getClassName() + + "#" + + traceElements.getMethodName() + + "%" + + traceElements.getLineNumber()); return; } @@ -386,7 +386,7 @@ public class ContainerShop implements Shop { setDirty(); this.moderator.clearStaffs(); Util.mainThreadRun(() -> plugin.getServer().getPluginManager() - .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); + .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); update(); } @@ -398,7 +398,7 @@ public class ContainerShop implements Shop { update(); if (result) { Util.mainThreadRun(() -> plugin.getServer().getPluginManager() - .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); + .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); } return result; } @@ -445,8 +445,8 @@ public class ContainerShop implements Shop { // Refund if necessary if (plugin.getConfig().getBoolean("shop.refund")) { plugin.getEconomy() - .deposit(this.getOwner(), plugin.getConfig().getDouble("shop.cost"), - Objects.requireNonNull(getLocation().getWorld()), getCurrency()); + .deposit(this.getOwner(), plugin.getConfig().getDouble("shop.cost"), + Objects.requireNonNull(getLocation().getWorld()), getCurrency()); } plugin.getShopManager().removeShop(this); plugin.getDatabaseHelper().removeShop(this); @@ -522,7 +522,7 @@ public class ContainerShop implements Shop { String name = player.getName(); if (name == null || name.isEmpty()) { name = MsgUtil.getMessageOfflinePlayer( - "unknown-owner", player); + "unknown-owner", player); } if (forceUsername) { return name; @@ -573,7 +573,7 @@ public class ContainerShop implements Shop { */ @Override public void sell(@NotNull UUID seller, @NotNull Inventory sellerInventory, - @NotNull Location loc2Drop, int amount) { + @NotNull Location loc2Drop, int amount) { Util.ensureThread(false); amount = item.getAmount() * amount; if (amount < 0) { @@ -646,69 +646,68 @@ public class ContainerShop implements Shop { String[] lines = new String[4]; OfflinePlayer player = plugin.getServer().getOfflinePlayer(this.getOwner()); lines[0] = MsgUtil.getMessageOfflinePlayer("signs.header", null, this.ownerName(false), inventoryAvailable() ? MsgUtil.getMessageOfflinePlayer("signs.status-available", null) : MsgUtil.getMessageOfflinePlayer("signs.status-unavailable", null)); + int remainingStock = getRemainingStock(); + int remainingSpace = getRemainingSpace(); if (this.isSelling()) { if (this.getItem().getAmount() > 1) { - if (this.getRemainingStock() == -1) { + if (remainingStock == -1) { lines[1] = MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, - MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); } else { lines[1] = - MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, - Integer.toString(getRemainingStock())); + MsgUtil.getMessageOfflinePlayer("signs.stack-selling", player, + Integer.toString(remainingStock)); + if (remainingStock == 0) { + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.out-of-stock", player); + } } } else { if (this.getRemainingStock() == -1) { lines[1] = MsgUtil.getMessageOfflinePlayer("signs.selling", player, - MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); } else { - lines[1] = - MsgUtil.getMessageOfflinePlayer("signs.selling", player, + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.selling", player, Integer.toString(this.getRemainingStock())); + if (remainingStock == 0) { + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.out-of-stock", player); + } } } - - } else if (this.isBuying()) { if (this.getItem().getAmount() > 1) { - if (this.getRemainingSpace() == -1) { + if (remainingSpace == -1) { lines[1] = MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, - MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); } else { - lines[1] = - MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, - Integer.toString(getRemainingSpace())); + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.stack-buying", player, + Integer.toString(remainingSpace)); + if (remainingSpace == 0) { + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.out-of-space", player); + } } } else { - if (this.getRemainingSpace() == -1) { + if (remainingSpace == -1) { lines[1] = MsgUtil.getMessageOfflinePlayer("signs.buying", player, - MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); } else { - lines[1] = - MsgUtil.getMessageOfflinePlayer("signs.buying", player, - Integer.toString(this.getRemainingSpace())); + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.buying", player, + Integer.toString(remainingSpace)); + if (remainingSpace == 0) { + lines[1] = MsgUtil.getMessageOfflinePlayer("signs.out-of-space", player); + } } } -// if (this.getRemainingSpace() == -1) { -// lines[1] = -// MsgUtil.getMessageOfflinePlayer( -// "signs.buying", -// player, -// "" + MsgUtil.getMessageOfflinePlayer("signs.unlimited", player)); -// } else { -// lines[1] = -// MsgUtil.getMessageOfflinePlayer("signs.buying", player, "" + this.getRemainingSpace()); -// } } lines[2] = - MsgUtil.getMessageOfflinePlayer( - "signs.item", player, Util.getItemStackName(this.getItem())); + MsgUtil.getMessageOfflinePlayer( + "signs.item", player, Util.getItemStackName(this.getItem())); if (this.isStackingShop()) { lines[3] = MsgUtil.getMessageOfflinePlayer("signs.stack-price", player, - Util.format(this.getPrice(), this), Integer.toString(item.getAmount()), - Util.getItemStackName(item)); + Util.format(this.getPrice(), this), Integer.toString(item.getAmount()), + Util.getItemStackName(item)); } else { lines[3] = MsgUtil - .getMessageOfflinePlayer("signs.price", player, Util.format(this.getPrice(), this)); + .getMessageOfflinePlayer("signs.price", player, Util.format(this.getPrice(), this)); } //new pattern @@ -784,7 +783,7 @@ public class ContainerShop implements Shop { this.saveExtraToYaml()); } catch (Exception e) { plugin.getLogger().log(Level.WARNING, - "Could not update a shop in the database! Changes will revert after a reboot!", e); + "Could not update a shop in the database! Changes will revert after a reboot!", e); } this.dirty = false; } @@ -907,7 +906,7 @@ public class ContainerShop implements Shop { this.moderator = shopModerator; update(); Util.mainThreadRun(() -> plugin.getServer().getPluginManager() - .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); + .callEvent(new ShopModeratorChangedEvent(this, this.moderator))); } /** @@ -932,15 +931,16 @@ public class ContainerShop implements Shop { this.moderator.setOwner(owner); //then change the sign Util.mainThreadRun(() -> { - for (Sign shopSign : signs) { - shopSign.setLine(0, MsgUtil - .getMessageOfflinePlayer("signs.header", offlinePlayer, ownerName(false))); - //Don't forgot update it - shopSign.update(true); - } +// for (Sign shopSign : signs) { +// shopSign.setLine(0, MsgUtil +// .getMessageOfflinePlayer("signs.header", offlinePlayer, ownerName(false))); +// //Don't forgot update it +// shopSign.update(true); +// } + setSignText(); //Event plugin.getServer().getPluginManager() - .callEvent(new ShopModeratorChangedEvent(this, this.moderator)); + .callEvent(new ShopModeratorChangedEvent(this, this.moderator)); }); update(); } @@ -1058,7 +1058,7 @@ public class ContainerShop implements Shop { Sign sign = (Sign) state; String[] lines = sign.getLines(); if (lines[0].isEmpty() && lines[1].isEmpty() && lines[2].isEmpty() && lines[3] - .isEmpty()) { + .isEmpty()) { signs.add(sign); //NEW SIGN continue; } @@ -1068,10 +1068,10 @@ public class ContainerShop implements Shop { signs.add(sign); } else { String adminShopHeader = MsgUtil - .getMessageOfflinePlayer("signs.header", null, MsgUtil.getMessageOfflinePlayer( - "admin-shop", plugin.getServer().getOfflinePlayer(this.getOwner()))); + .getMessageOfflinePlayer("signs.header", null, MsgUtil.getMessageOfflinePlayer( + "admin-shop", plugin.getServer().getOfflinePlayer(this.getOwner()))); String signHeaderUsername = - MsgUtil.getMessageOfflinePlayer("signs.header", null, this.ownerName(true)); + MsgUtil.getMessageOfflinePlayer("signs.header", null, this.ownerName(true)); if (header.contains(adminShopHeader) || header.contains(signHeaderUsername)) { signs.add(sign); //TEXT SIGN @@ -1090,7 +1090,7 @@ public class ContainerShop implements Shop { @Override public List getStaffs() { return new ArrayList<>(this.moderator - .getStaffs()); //Clone only, so make sure external calling will use addStaff + .getStaffs()); //Clone only, so make sure external calling will use addStaff } @Override @@ -1173,18 +1173,17 @@ public class ContainerShop implements Shop { @Override public String toString() { - StringBuilder sb = - new StringBuilder( - "Shop " - + (location.getWorld() == null ? "unloaded world" - : location.getWorld().getName()) - + "(" - + location.getBlockX() - + ", " - + location.getBlockY() - + ", " - + location.getBlockZ() - + ")"); + StringBuilder sb = new StringBuilder(); + + sb.append("Shop ") + .append(location.getWorld() == null ? "unloaded world" : location.getWorld().getName()) + .append("(") + .append(location.getBlockX()) + .append(", ") + .append(location.getBlockY()) + .append(", ") + .append(location.getBlockZ()) + .append(")"); sb.append(" Owner: ").append(this.ownerName(false)).append(" - ").append(getOwner()); if (isUnlimited()) { sb.append(" Unlimited: true"); @@ -1222,14 +1221,14 @@ public class ContainerShop implements Shop { BlockState state = PaperLib.getBlockState(location.getBlock(), false).getState(); try { if (state.getType() == Material.ENDER_CHEST - && plugin.getOpenInvPlugin() != null) { //FIXME: Need better impl + && plugin.getOpenInvPlugin() != null) { //FIXME: Need better impl OpenInv openInv = ((OpenInv) plugin.getOpenInvPlugin()); return openInv.getSpecialEnderChest( - Objects.requireNonNull( - openInv.loadPlayer( - plugin.getServer().getOfflinePlayer(this.moderator.getOwner()))), - plugin.getServer().getOfflinePlayer((this.moderator.getOwner())).isOnline()) - .getBukkitInventory(); + Objects.requireNonNull( + openInv.loadPlayer( + plugin.getServer().getOfflinePlayer(this.moderator.getOwner()))), + plugin.getServer().getOfflinePlayer((this.moderator.getOwner())).isOnline()) + .getBukkitInventory(); } } catch (Exception e) { Util.debugLog(e.getMessage()); @@ -1246,7 +1245,7 @@ public class ContainerShop implements Shop { plugin.log("Deleting shop " + this + " request by invalid inventory."); this.delete(); Util.debugLog( - "Inventory doesn't exist anymore: " + this + " shop was removed."); + "Inventory doesn't exist anymore: " + this + " shop was removed."); } } else { plugin.log("Deleting shop " + this + " request by invalid inventory."); @@ -1349,6 +1348,7 @@ public class ContainerShop implements Shop { /** * Checks to see if it is a real double without updating anything. + * * @return If the chest is a real double chest, as in it is a double and it has the same item. */ public boolean isRealDouble() { @@ -1392,18 +1392,9 @@ public class ContainerShop implements Shop { } if (!Util.canBeShop(this.getLocation().getBlock())) { Util.debugLog("Shop at " + this.getLocation() + "@" + this.getLocation().getBlock() - + " container was missing, unload from memory..."); + + " container was missing, unload from memory..."); this.onUnload(); this.delete(true); -// if (!createBackup) { -// this.createBackup = Util.backupDatabase(); -// } -// if (createBackup) { -// plugin.log("Deleting shop " + this + " request by non-shopable container."); -// this.delete(); -// } else { -// Util.debugLog("Failed to create backup, shop at " + this.toString() + " won't to delete."); -// } } } diff --git a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java index 3669022d3..6df12653f 100644 --- a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java +++ b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java @@ -314,12 +314,11 @@ public class MsgUtil { /* Set default language vesion and update messages.yml */ int ver = 0; String strVer = messagei18n.getString("language-version"); - if (StringUtils.isNumeric(strVer)) { - try { - ver = Integer.parseInt(strVer); - } catch (NumberFormatException ignore) { - } + + if (StringUtils.isNumeric(strVer) && !StringUtils.isEmpty(strVer)) { + ver = Integer.parseInt(strVer); } + if (ver == 0) { messagei18n.set("language-version", 1); } else { @@ -905,7 +904,9 @@ public class MsgUtil { private static void printEnchantment(ChatSheetPrinter chatSheetPrinter, Map enchs) { for (Entry entries : enchs.entrySet()) { - chatSheetPrinter.printLine(ChatColor.YELLOW + MsgUtil.getEnchi18n(entries.getKey()) + " " + RomanNumber.toRoman(entries.getValue())); + //Use boxed object to avoid NPE + Integer level = entries.getValue(); + chatSheetPrinter.printLine(ChatColor.YELLOW + MsgUtil.getEnchi18n(entries.getKey()) + " " + RomanNumber.toRoman(level == null ? 1 : level)); } } @@ -1436,24 +1437,25 @@ public class MsgUtil { setAndUpdate("signs.status-unavailable"); setAndUpdate("language-version", ++selectedVersion); } + if (selectedVersion == 51) { + setAndUpdate("signs.out-of-stock"); + setAndUpdate("signs.out-of-space"); + setAndUpdate("command.description.ban"); + setAndUpdate("command.description.unban"); + setAndUpdate("command.description.freeze"); + setAndUpdate("command.description.lock"); + setAndUpdate("controlpanel.lock"); + setAndUpdate("controlpanel.lock-hover"); + setAndUpdate("controlpanel.freeze"); + setAndUpdate("controlpanel.freeze-hover"); + setAndUpdate("language-version", ++selectedVersion); + } setAndUpdate("_comment", "Please edit this file after format with json formatter"); } private static void setAndUpdate(@NotNull String path, @Nullable Object object) { - if (object == null) { - messagei18n.set(path, null); // Removal - return; - } - Object alt = null; - if (builtInLang != null) { - alt = builtInLang.get(path, object); - } - if (alt == null) { - messagei18n.set(path, object); - } else { - messagei18n.set(path, alt); - } + messagei18n.set(path, object); } private static void setAndUpdate(@NotNull String path) { diff --git a/src/main/java/org/maxgamer/quickshop/util/Util.java b/src/main/java/org/maxgamer/quickshop/util/Util.java index 152845e2f..ec06c5ea9 100644 --- a/src/main/java/org/maxgamer/quickshop/util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/util/Util.java @@ -479,7 +479,8 @@ public class Util { } } if (itemStack.hasItemMeta() - && Objects.requireNonNull(itemStack.getItemMeta()).hasDisplayName()) { + && Objects.requireNonNull(itemStack.getItemMeta()).hasDisplayName() + && !QuickShop.getInstance().getConfig().getBoolean("shop.force-use-item-original-name")) { return itemStack.getItemMeta().getDisplayName(); } return MsgUtil.getItemi18n(itemStack.getType().name()); diff --git a/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java b/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java index 66bcdbe61..4a69a2d7d 100644 --- a/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java +++ b/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java @@ -40,10 +40,7 @@ import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Method; import java.net.URLDecoder; -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.logging.Level; @@ -94,7 +91,7 @@ public class EnvironmentChecker { }); } - public ResultReport run() { + public ResultReport run(EnvCheckEntry.Stage stage) { sortTests(); CheckResult result = CheckResult.PASSED; Map results = new LinkedHashMap<>(); @@ -106,35 +103,39 @@ public class EnvironmentChecker { } try { EnvCheckEntry envCheckEntry = declaredMethod.getAnnotation(EnvCheckEntry.class); - ResultContainer executeResult = (ResultContainer) declaredMethod.invoke(this); - //plugin.getLogger().info("Result: "+executeResult.getResultMessage()); - if (executeResult.getResult().ordinal() > result.ordinal()) { //set bad result if it worse than latest one. - result = executeResult.getResult(); - } - switch (executeResult.getResult()) { - case PASSED: - if (Util.isDevEdition() || Util.isDevMode()) { - plugin.getLogger().info("[OK] " + envCheckEntry.name()); - Util.debugLog("[Pass] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - } - break; - case WARNING: - plugin.getLogger().warning("[WARN] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - Util.debugLog("[Warning] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - break; - case STOP_WORKING: - plugin.getLogger().warning("[STOP] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - Util.debugLog("[Stop-Freeze] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - //It's okay, QuickShop should continue executing checks to collect more data. - //And show user all errors at once. - break; - case DISABLE_PLUGIN: - plugin.getLogger().warning("[FATAL] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - Util.debugLog("[Fatal-Disable] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); - skipAllTest = true; //We need disable plugin NOW! Some HUGE exception is here, hurry up! - break; - } - results.put(envCheckEntry, executeResult); + if (Arrays.stream(envCheckEntry.stage()).noneMatch(entry -> entry == stage)) { + Util.debugLog("Skip test: " + envCheckEntry.name() + ": Except stage: " + Arrays.toString(envCheckEntry.stage()) + " Current stage: " + stage); + continue; + } + ResultContainer executeResult = (ResultContainer) declaredMethod.invoke(this); + //plugin.getLogger().info("Result: "+executeResult.getResultMessage()); + if (executeResult.getResult().ordinal() > result.ordinal()) { //set bad result if it worse than latest one. + result = executeResult.getResult(); + } + switch (executeResult.getResult()) { + case PASSED: + if (Util.isDevEdition() || Util.isDevMode()) { + plugin.getLogger().info("[OK] " + envCheckEntry.name()); + Util.debugLog("[Pass] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + } + break; + case WARNING: + plugin.getLogger().warning("[WARN] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + Util.debugLog("[Warning] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + break; + case STOP_WORKING: + plugin.getLogger().warning("[STOP] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + Util.debugLog("[Stop-Freeze] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + //It's okay, QuickShop should continue executing checks to collect more data. + //And show user all errors at once. + break; + case DISABLE_PLUGIN: + plugin.getLogger().warning("[FATAL] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + Util.debugLog("[Fatal-Disable] " + envCheckEntry.name() + ": " + executeResult.getResultMessage()); + skipAllTest = true; //We need disable plugin NOW! Some HUGE exception is here, hurry up! + break; + } + results.put(envCheckEntry, executeResult); } catch (Exception e) { plugin.getLogger().log(Level.WARNING, "Failed executing EnvCheckEntry [" + declaredMethod.getName() + "]: Exception thrown out without caught. Something going wrong!", e); plugin.getLogger().warning("[FAIL] " + declaredMethod.getName()); @@ -153,15 +154,16 @@ public class EnvironmentChecker { } try { int majorVersion = Integer.parseInt(splitVersion[0]); - return majorVersion < 11; //Target JDK/JRE version + return majorVersion < 16; //Target JDK/JRE version } catch (NumberFormatException ignored) { Util.debugLog("Failed to parse jvm major version to check: " + splitVersion[0]); return false; } } + @SneakyThrows @EnvCheckEntry(name = "Signature Verify", priority = 0, stage = {EnvCheckEntry.Stage.ON_LOAD, EnvCheckEntry.Stage.ON_ENABLE}) - public ResultContainer securityVerify() { + public ResultContainer securtyVerify() { JarVerifyTool tool = new JarVerifyTool(); try { ClassLoader loader = this.getClass().getClassLoader(); @@ -210,22 +212,21 @@ public class EnvironmentChecker { @SneakyThrows - @EnvCheckEntry(name = "Java Runtime Environment Version Test", priority = 1) + @EnvCheckEntry(name = "Java Runtime Environment Version Test", priority = 1, stage = EnvCheckEntry.Stage.ON_ENABLE) public ResultContainer jrevTest() { if (isOutdatedJvm()) { String jvmWarning = "\n" + "============================================================\n" + " Warning! You're running an outdated version of Java\n" + "============================================================\n" + - "* QuickShop will stop being compatible with this Java build\n" + - "* since we released 1.17 updates.\n" + + "* QuickShop will stop being compatible in future!\n" + "*\n" + "* You should schedule an upgrade for Java on your server,\n" + "* because we will drop support with any version Java that\n" + - "* lower Java 11.\n" + + "* lower Java 16.\n" + "*\n" + "* That means:\n" + - "* 1) The new version of QuickShop for 1.17 updates will stop working on your server.\n" + + "* 1) The new version of QuickShop in future will stop working on your server.\n" + "* 2) No more supporting for QuickShop that running\n" + "* on an outdated Java builds.\n" + "* 3) You will get performance improvements in the\n" + @@ -241,14 +242,15 @@ public class EnvironmentChecker { "* \n" + "* What should I do?\n" + "* You should update your server Java builds as soon as you can.\n" + - "* Java 11 or any version after 11 is okay. \n" + + "* Java 16 or any version after 16 is okay. \n" + "*\n" + - "* Most plugins can run on Java 11+ without problems un-\n" + + "* Most plugins can run on Java 16+ without problems un-\n" + "* less the code is really bad/hacky and you should uninstall it.\n" + "*\n" + "* You can get Java at here:\n" + "* https://www.oracle.com/java/technologies/javase-downloads.html\n" + - "* And we recommended Java SE 11 (LTS) build for Minecraft Server.\n" + + "* Attention: Mojang decide upgrading Java 16\n" + + "* So if you still use Java lower 16, you probably cannot start Minecraft server and client.\n" + "*\n" + "*\n" + String.format("* Current Java version: %s", System.getProperty("java.version")); diff --git a/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java b/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java index acb5dbde6..aa2127cf9 100644 --- a/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java +++ b/src/main/java/org/maxgamer/quickshop/util/reporter/error/RollbarErrorReporter.java @@ -55,11 +55,15 @@ public class RollbarErrorReporter { , UnsupportedClassVersionError.class , LinkageError.class); private final QuickShop plugin; - @Getter - private final boolean enabled; + private final QuickShopExceptionFilter quickShopExceptionFilter; private boolean disable; private boolean tempDisable; private String lastPaste = null; + private final GlobalExceptionFilter serverExceptionFilter; + private final GlobalExceptionFilter globalExceptionFilter; + @Getter + private volatile boolean enabled = false; + public RollbarErrorReporter(@NotNull QuickShop plugin) { this.plugin = plugin; @@ -70,10 +74,16 @@ public class RollbarErrorReporter { .handleUncaughtErrors(false) .build(); this.rollbar = Rollbar.init(config); - plugin.getLogger().setFilter(new QuickShopExceptionFilter()); // Redirect log request passthrough our error catcher. - plugin.getServer().getLogger().setFilter(new GlobalExceptionFilter()); - plugin.getServer().getLogger().setFilter(new GlobalExceptionFilter()); - Logger.getGlobal().setFilter(new GlobalExceptionFilter()); + + quickShopExceptionFilter = new QuickShopExceptionFilter(plugin.getLogger().getFilter()); + plugin.getLogger().setFilter(quickShopExceptionFilter); // Redirect log request passthrough our error catcher. + + serverExceptionFilter = new GlobalExceptionFilter(plugin.getServer().getLogger().getFilter()); + plugin.getServer().getLogger().setFilter(serverExceptionFilter); + + globalExceptionFilter = new GlobalExceptionFilter(Logger.getGlobal().getFilter()); + Logger.getGlobal().setFilter(globalExceptionFilter); + Util.debugLog("Rollbar error reporter success loaded."); // if (bootPaste == null) { // new BukkitRunnable() { @@ -93,6 +103,13 @@ public class RollbarErrorReporter { enabled = true; } + public void unregister() { + enabled = false; + plugin.getLogger().setFilter(quickShopExceptionFilter.preFilter); + plugin.getServer().getLogger().setFilter(serverExceptionFilter.preFilter); + Logger.getGlobal().setFilter(globalExceptionFilter.preFilter); + } + private Map makeMapping() { Map dataMapping = new LinkedHashMap<>(); dataMapping.put("paste", this.lastPaste); @@ -307,6 +324,18 @@ public class RollbarErrorReporter { class GlobalExceptionFilter implements Filter { + @Nullable + @Getter + private final Filter preFilter; + + GlobalExceptionFilter(@Nullable Filter preFilter) { + this.preFilter = preFilter; + } + + private boolean defaultValue(LogRecord record) { + return preFilter == null || preFilter.isLoggable(record); + } + /** * Check if a given log record should be published. * @@ -316,18 +345,18 @@ public class RollbarErrorReporter { @Override public boolean isLoggable(@NotNull LogRecord record) { if (!enabled) { - return true; + return defaultValue(record); } Level level = record.getLevel(); if (level != Level.WARNING && level != Level.SEVERE) { - return true; + return defaultValue(record); } if (record.getThrown() == null) { - return true; + return defaultValue(record); } if (Util.isDevMode()) { sendError(record.getThrown(), record.getMessage()); - return true; + return defaultValue(record); } else { return sendError(record.getThrown(), record.getMessage()) == null; } @@ -336,6 +365,17 @@ public class RollbarErrorReporter { } class QuickShopExceptionFilter implements Filter { + @Nullable + @Getter + private final Filter preFilter; + + QuickShopExceptionFilter(@Nullable Filter preFilter) { + this.preFilter = preFilter; + } + + private boolean defaultValue(LogRecord record) { + return preFilter == null || preFilter.isLoggable(record); + } /** * Check if a given log record should be published. @@ -346,18 +386,18 @@ public class RollbarErrorReporter { @Override public boolean isLoggable(@NotNull LogRecord record) { if (!enabled) { - return true; + return defaultValue(record); } Level level = record.getLevel(); if (level != Level.WARNING && level != Level.SEVERE) { - return true; + return defaultValue(record); } if (record.getThrown() == null) { - return true; + return defaultValue(record); } if (Util.isDevMode()) { sendError(record.getThrown(), record.getMessage()); - return true; + return defaultValue(record); } else { return sendError(record.getThrown(), record.getMessage()) == null; } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index b9dc71d4e..4ad30cf18 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -22,7 +22,7 @@ # IF YOU WANT EDIT CONFIGURATION, THE FILE "config.yml" IS THE CORRECT FILE #Do not touch if you not clear know about this -config-version: 128 +config-version: 129 #Select the language you want to use, (e.g de), use only supported language codes from the list below. #If you use a not exist/not support language, plugin will move to use en_US to keep everything working. @@ -436,6 +436,8 @@ shop: remove-protection-trigger: true #Allow quickshop selling/buying multi items in once transaction. allow-stacks: false + #This option to control QuickShop ignore the item custom display name. + force-use-item-original-name: false #List of items that can't be sold in shops. Anyone with quickshop.bypass. can bypass it blacklist: - Bedrock @@ -626,6 +628,8 @@ integration: #CONTAINER_ACCESS = Player must can access container. #ACCESS = Player must have ability to access the target claim. trade: [ ] + #Should QuickShop delete shops if shop owner has been untrusted in claim? + delete-on-untrusted: true residence: enable: false #Should we prevent create a shop or trade with shop outside this plugin area diff --git a/src/main/resources/lang-original/messages.json b/src/main/resources/lang-original/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang-original/messages.json +++ b/src/main/resources/lang-original/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/af-ZA/messages.json b/src/main/resources/lang/af-ZA/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/af-ZA/messages.json +++ b/src/main/resources/lang/af-ZA/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ar-SA/messages.json b/src/main/resources/lang/ar-SA/messages.json index 62ba774d9..1707b26a8 100644 --- a/src/main/resources/lang/ar-SA/messages.json +++ b/src/main/resources/lang/ar-SA/messages.json @@ -4,7 +4,7 @@ "translation-version": "إصدار الدعم: إعادة التشكيل", "translation-contributors": "المساهمون: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken و Andre_601", "translation-country": "منطقة اللغة: العربية (ar_AR)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cلا يمكن العثور على QuickShop. تحتاج إلى النظر إلى واحد.", "no-anythings-in-your-hand": "&cلا يوجد شيء في يديك.", "no-permission": "لا تملك الصلاحيّات للقيام بذلك.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "غير محدود", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ca-ES/messages.json b/src/main/resources/lang/ca-ES/messages.json index 4d2793c9e..1ba4bf49c 100644 --- a/src/main/resources/lang/ca-ES/messages.json +++ b/src/main/resources/lang/ca-ES/messages.json @@ -4,7 +4,7 @@ "translation-version": "Versiò suportada: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Zona de l'idioma: Català (ca_ES)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "No s'ha trobat cap QuickShop. Has de mirar a una.", "no-anythings-in-your-hand": "Ni hi ha res a la teva mà.", "no-permission": "No tens permisos per a fer això.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/cs-CZ/messages.json b/src/main/resources/lang/cs-CZ/messages.json index d2c5ce5e7..978cef87d 100644 --- a/src/main/resources/lang/cs-CZ/messages.json +++ b/src/main/resources/lang/cs-CZ/messages.json @@ -1,10 +1,10 @@ { "file-test": "Toto je zkušební textový soubor. Používáme jej k testování, pokud jde o zprávy .json je rozbitý. Můžete jej vyplnit jakýmkoliv východním vejci, které se vám zde líbí :)", - "translation-author": "Translator: Ghost_chu, Andre_601", + "translation-author": "Translator: Ghost_chu, Andre_601, LixCisCZ", "translation-version": "Verze: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: Czech (cs_CZ)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cNelze najít QuickShop. Musíš se na něj podívat.", "no-anythings-in-your-hand": "&cNemáš v ruce žádný předmět.", "no-permission": "&cNa tuto akci nemáš práva.", @@ -81,66 +81,66 @@ "no-pending-action": "&cNemáte žádné čekající akce", "permission-denied-3rd-party": "&cOprávnění odepřeno: Plugin třetí strany [{0}].", "shops-removed-in-world": "Celkem &b{0}&e obchodů bylo smazáno ve světě &b{1}&e.", - "world-not-exists": "&cThe world &e{0}&c doesn't exist", + "world-not-exists": "&cSvět &e{0}&c neexistuje", "menu": { - "successful-purchase": "&aSuccessfully purchased:", - "successfully-sold": "&aSuccessfully sold:", - "item-name-and-price": "&e{0} {1} &afor &e{2}", - "sell-tax": "&aYou paid &e{0} &ain taxes.", - "sell-tax-self": "&aYou didn't pay taxes because you own this shop.", - "enchants": "&5Enchantments", - "stored-enchants": "&5Stored Enchantments", - "shop-information": "&aShop Information:", - "owner": "&aOwner: {0}", + "successful-purchase": "&aÚspěšně zakoupeno:", + "successfully-sold": "&aÚspěšně prodáno:", + "item-name-and-price": "&e{0} {1} &aza &e{2}", + "sell-tax": "&aZaplatil jste &e{0} &ana daních.", + "sell-tax-self": "&aNeplatil jste daně, protože vlastníte tento obchod.", + "enchants": "&5Enchanty", + "stored-enchants": "&5Uložené enchanty", + "shop-information": "&aInformace o obchodě:", + "owner": "&aVlastník: {0}", "item": "&aItem: &e{0}", "item-holochat-error": "&c[Error]", - "preview": "&b[Item Preview]", - "space": "&aSpace: &e{0}", - "stock": "&aStock &e{0}", - "price-per": "&aPrice per &e{0} &a- &e{1}", - "price-per-stack": "&aPrice per &e{2}x {0} - {1}", - "total-value-of-chest": "&aTotal value of chest: &e{0}", - "damage-percent-remaining": "&e{0}% &aremaining.", - "this-shop-is-buying": "&aThis shop is &dBUYING&a items.", - "this-shop-is-selling": "&aThis shop is &bSELLING&a items.", - "shop-stack": "&aAmount of bulk: &e{0}", - "effects": "&aEffects" + "preview": "&b[Náhled itemu]", + "space": "&aMezera: &e{0}", + "stock": "&aSkladem &e{0}", + "price-per": "&aCena za &e{0} &a- &e{1}", + "price-per-stack": "&aCena za &e{2}x {0} - {1}", + "total-value-of-chest": "&aCelková hodnota chesty: &e{0}", + "damage-percent-remaining": "&e{0}% &azbývá.", + "this-shop-is-buying": "&aTento obchod &dNAKUPUJE &aitemy.", + "this-shop-is-selling": "&aTento obchod &dPRODÁVÁ &aitemy.", + "shop-stack": "&aPočet stacků: &e{0}", + "effects": "&aEfekty" }, - "bypassing-lock": "&cBypassing a QuickShop lock!", - "that-is-locked": "&cThis shop is locked.", - "how-many-buy": "&aEnter in chat, how many you wish to &bBUY&a. You can buy &e{0}&a. Enter &ball&a to buy them all.", - "how-many-sell": "&aEnter in chat, how much you wish to &dSELL&a. You have &e{0}&a available. Enter &ball&a in chat, to sell all.", - "not-allowed-to-create": "&cYou may not create a shop here.", - "blacklisted-item": "&cYou cannot sell this item because it is on the blacklist", + "bypassing-lock": "&cBypassujete zámek QuickShopu!", + "that-is-locked": "&cTento obchod je uzamčen.", + "how-many-buy": "&aNapište do chatu, kolik si přejete &bKOUPIT&a. Můžete si koupit &e{0}&a. Zadejte &ball&a pro zakoupení všech.", + "how-many-sell": "&aZadejte do chatu, kolik si přejete &dPRODAT&a. Máte k dispozici &e{0}&a. Zadejte &ball&a do chatu, k prodeji všeho.", + "not-allowed-to-create": "&cZde nemůžete vytvořit obchod.", + "blacklisted-item": "&cNemůžete prodat tento item, protože je na černé listině", "how-much-to-trade-for": "&aZadejte do chatu: Cenu za kolik chcete prodávat &e{1}x {0}&a.", "command": { "toggle-unlimited": { - "unlimited": "&aShop is now unlimited", - "limited": "&aShop is now limited" + "unlimited": "&aObchod je nyní neomezený", + "limited": "&aObchod je nyní omezený" }, - "transfer-success": "&aTransferred &e{0} &ashop(s) to &e{1}", - "transfer-success-other": "&aTransferred &e{0} {1}&a's shop(s) to &e{2}", + "transfer-success": "&aPřeneseno &e{0} &aobchodů &e{1}", + "transfer-success-other": "&aPřeneseno &e{0} &aobchodů &e{1}", "some-shops-removed": "&e{0} &aobchod(ů) odstraněno", - "no-owner-given": "&cNo owner provided", + "no-owner-given": "&cŽádný vlastník", "new-owner": "&aNový majitel: &e{0}", - "now-buying": "&aNow &dBUYING &e{0}", - "now-selling": "&aNow &bSELLING &e{0}", - "cleaning": "&aRemoving shops without any stock...", + "now-buying": "&aNyní &dKUPUJETE &e{0}", + "now-selling": "&aNyní &bPRODÁVÁTE &e{0}", + "cleaning": "&aOdstraňuji obchody bez skladu...", "reloading": "&aReloadování...", - "cleaned": "&aRemoved &e{0}&a shops.", - "no-type-given": "&cUsage: /qs find ", - "no-world-given": "&cPlease specify a world name", - "bulk-size-not-set": "&cUsage: /qs size ", - "bulk-size-now": "&aNow trading &e{0}x {1}", - "invalid-bulk-amount": "&cThe given value {0} is larger than max stack size or lower than one", - "no-trade-item": "&aPlease hold a trade item to change in main hand", - "trade-item-now": "&aNow trading &e{0}x {1}", - "no-amount-given": "&cNo amount provided. Use &a/qs refill &c", - "now-debuging": "&aSuccessfully enabled developer mode. Reloading QuickShop...", - "now-nolonger-debuging": "&aSuccessfully disabled Developer mode. Reloading QuickShop...", - "wrong-args": "&cInvalid arguments. Use &l/qs help &cto see a list of commands.", + "cleaned": "&aOdstraněno &e{0}&a obchodů.", + "no-type-given": "&cPoužití: /qs find ", + "no-world-given": "&cZadejte název světa", + "bulk-size-not-set": "&cPoužití: /qs size ", + "bulk-size-now": "&aNyní tradujete &e{0}x {1}", + "invalid-bulk-amount": "&cZadaná hodnota {0} je větší než maximální velikost stacku nebo menší než jedna", + "no-trade-item": "&aPodržte prosím item obchodu, který chcete změnit v hlavní ruce", + "trade-item-now": "&aNyní tradujete &e{0}x {1}", + "no-amount-given": "&cNebyla poskytnuta žádná hodnota. Použijte &a/qs refill &c", + "now-debuging": "&aÚspěšně povolen vývojářský režim. Reloaduji QuickShop...", + "now-nolonger-debuging": "&aÚspěšně zakázán vývojářský režim. Reloaduji QuickShop...", + "wrong-args": "&cNeplatné argumenty. Použijte &l/qs help &cpro zobrazení seznamu příkazů.", "description": { - "title": "&aQuickShop help", + "title": "&aNápověda pro QuickShop", "unlimited": "&eDá obchodu neomezený sklad.", "setowner": "&eZmění vlastnictví obchodu.", "owner": "&eZmění vlastnictví obchodu.", @@ -169,7 +169,11 @@ "removeall": "&eOdebrat VŠECHNY obchody zadaného hráče", "transfer": "&ePřeneste všechny obchody do jiného", "removeworld": "&eOdebrat VŠECHNY obchody zadaného hráče", - "currency": "&eNastavte nebo odeberte nastavení měny obchodu" + "currency": "&eNastavte nebo odeberte nastavení měny obchodu", + "ban": "&eZabanování hráče z obchodu", + "unban": "&eOdbanování hráče z obchodu", + "freeze": "&eZakázat nebo povolit obchodování obchodu", + "lock": "&ePřepnout stav zámku obchodu" }, "disabled": "&cTento příkaz je zakázán: &e{0}", "feature-not-enabled": "Funkce není v konfiguraci povolena." @@ -185,7 +189,10 @@ "stack-price": "{0} za {1}x {2}", "unlimited": "Neomezené", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Vyprodáno", + "out-of-space": "Nedostatek místa", + "freeze": "Obchod zakázán" }, "controlpanel": { "setowner": "&aVlastník: &b{0} &e[&d&lZměna&e]", @@ -198,19 +205,23 @@ "mode-buying": "&aRežim obchodu: &bSelling &e[&d&lChange&e]", "mode-buying-hover": "&eKliknutím změníte obchod na SELL režim.", "price": "&aVlastník: &b{0} &e[&d&lZměna&e]", - "price-hover": "&eClick to set a new price for the item.", - "refill": "&aRefill: Refill the items &e[&d&lOK&e]", - "refill-hover": "&eClick to refill the shop.", - "empty": "&aEmpty: Remove all items &e[&d&lOK&e]", - "empty-hover": "&eClick to clear the inventory of the shop.", - "remove": "&c&l[Remove Shop]", - "remove-hover": "&eClick to remove this shop.", - "stack": "&aPer bulk amount: &b{0} &e[&d&lChange&e]", - "stack-hover": "&eClick to set the amount of item per bulk. Set to 1 for normal behaviour.", - "item": "&aShop Item: {0} &e[&d&lChange&e]", - "item-hover": "&eClick to change shop Item", - "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "price-hover": "&eKliknutím nastavíte novou cenu itemu.", + "refill": "&aRefill: Doplnit itemy&e[&d&lOK&e]", + "refill-hover": "&eKlikněte pro doplnění obchodu.", + "empty": "&aEmpty: Odstranit všechny itemy &e[&d&lOK&e]", + "empty-hover": "&eKlikněte pro vymazání inventáře obchodu.", + "remove": "&c&l[Odstranit obchod]", + "remove-hover": "&eKlikněte pro odstranění tohoto obchodu.", + "stack": "&aCena za stack: &b{0} &e[&d&lZměnit&e]", + "stack-hover": "&eKliknutím nastavíte množství položky za každý bulk. Nastavte na 1 pro normální chování.", + "item": "&aItem obchodu: {0} &e[&d&lZměnit&e]", + "item-hover": "&eKlikněte pro změnu itemu obchodu", + "currency": "&aMěna: &b{0} &e[&d&lNastavit&e]", + "currency-hover": "&eKlikněte pro nastavení nebo odebrání měny, kterou tento obchod používá", + "lock": "&eZámek obchodu: &b{0} &e[&d&lPřepnout&e]", + "lock-hover": "&ePovolit/Zakázat ochranu zámku obchodu.", + "freeze": "&eRežim zmražení: &b{0} &e[&d&lPřepnout&e]", + "freeze-hover": "&ePřepnout stav zmrazení obchodu" }, "tableformat": { "full_line": "+---------------------------------------------------+", @@ -223,36 +234,36 @@ "failed": "&c✘" }, "tabcomplete": { - "price": "[price]", - "range": "[range]", - "amount": "[amount]", - "currency": "[currency name]", + "price": "[cena]", + "range": "[rozsah]", + "amount": "[množství]", + "currency": "[název měny]", "item": "[item]" }, "updatenotify": { - "buttontitle": "[Update Now]", + "buttontitle": "[Aktualizovat teď]", "onekeybuttontitle": "[OneKey Update]", "list": [ - "{0} was released. You are still using {1}!", - "Boom! New update {0} incoming. Update!", - "Surprise! {0} came out. You are on {1}", - "Looks like you need to update. {0} was released!", - "Ooops! {0} was now released. You are on {1}!", - "I swear, QS has been updated to {0}. Why have you not updated yet?", - "Fixing and re... Sorry, but {0} was released!", - "Err! Nope. This is not an error. {0} has been released!", - "OMG! {0} came out! Why are you still using {1}?", - "Todays News: QuickShop has been updated to {0}!", - "Plugin k.i.a. You should update to {0}!", - "Update {0} ignited. Save update!", - "There is an update available Commander. {0} has just came out!", - "Look my style---{0} updated. You're still using {1}", - "Ahhhhhhh! New update {0}! Update!", - "What do you think? {0} has been released! Update!", - "Doctor, QuickShop has a new update {0}! You should update~", - "Ko~ko~da~yo~ QuickShop has a new update {0} ~" + "{0} byla vydána. Stále používáte {1}!", + "Boom! Nová aktualizace {0} přichází. Aktualizujte si plugin!", + "Překvapení! {0} přišel. Jste na {1}", + "Vypadá to, že je třeba aktualizovat plugin. {0} byla vydána!", + "Jejda! {0} byl nyní vydán. Jste na {1}!", + "Přísahám, QS bylo aktualizováno na {0}. Proč jste ještě neupdatovali?", + "Oprava a re... Omlouváme se, ale {0} update byl vydán!", + "Chyba! Ne. Není to chyba. {0} byl vydán!", + "OMG! {0} přišel na to! Proč stále používáte {1}?", + "Dnešní novinky: QuickShop byl updatován na {0}!", + "Plugin k.i.a. Měl byste aktualizovat na {0}!", + "Update {0} zapálen. Uložit update!", + "K dispozici je aktualizační velitel. {0} update právě přišel!", + "Podívejte se na můj styl ---{0} updatován. Stále používáte {1}", + "Ahhhhhh! Nový update {0}! Updatujte plugin!", + "Co si myslíte? {0} byla vydána! Updatujte plugin!", + "Doktor, QuickShop má novou aktualizaci {0}! Měl byste aktualizovat~", + "Ko~ko~da~yo~ QuickShop má nový update {0}~" ], - "remote-disable-warning": "&cThis version of QuickShop is marked disabled by remote server, meaning this version may have serious problem, get details from our Spigot plugin page: {0}. This warning will continue to appear untill you switch to a stable version, but it will not affect your server's performence.", + "remote-disable-warning": "&cTato verze QuickShopu je vypnuta vzdáleným serverem, což znamená, že tato verze může mít vážný problém, získejte podrobnosti z naší stránky pluginu Spigot: {0}. Toto varování se bude objevovat až do přepnutí na stabilní verzi, ale neovlivní to výkon vašeho serveru.", "label": { "unstable": "[Unstable]", "stable": "[Stable]", diff --git a/src/main/resources/lang/da-DK/messages.json b/src/main/resources/lang/da-DK/messages.json index d1bb1bf86..eddf52108 100644 --- a/src/main/resources/lang/da-DK/messages.json +++ b/src/main/resources/lang/da-DK/messages.json @@ -4,7 +4,7 @@ "translation-version": "Supportversion: Reremake", "translation-contributors": "Bidragydere: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken og Andre_601", "translation-country": "Sprogzone: dansk (da_DA)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cKunne ikke finde en QuickShop. Du skal kigge på en.", "no-anythings-in-your-hand": "&cDer er intet i din hånd.", "no-permission": "&cDu har ikke rettighederne til at gøre dette.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/de-DE/messages.json b/src/main/resources/lang/de-DE/messages.json index cc0299645..98ef2d6b3 100644 --- a/src/main/resources/lang/de-DE/messages.json +++ b/src/main/resources/lang/de-DE/messages.json @@ -4,7 +4,7 @@ "translation-version": "Unterstütze Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Sprache: Deutsch (de_DE)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cKonnte keinen QuickShop finden. Du musst auf einen schauen.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -26,7 +26,7 @@ "success-created-shop": "&cShop created.", "success-removed-shop": "&aShop removed.", "shops-arent-locked": "&cRemember, shops are NOT protected from theft! If you want to stop thieves, lock it with LWC, Lockette, etc!", - "shop-creation-cancelled": "&cShop creation cancelled.", + "shop-creation-cancelled": "&cShop-Erstellung abgebrochen.", "shop-purchase-cancelled": "&cShop-Kauf abgebrochen.", "shop-stock-too-low": "&cDer Shop hat nur noch {0}{1} übrig!", "you-cant-afford-to-buy": "&cEs kostet {0}, aber du hast nur {1}", @@ -149,7 +149,7 @@ "price": "&eÄndert den Kauf-/Verkaufspreis eines Shops", "clean": "&eEntferne alle (geladenen) Shops ohne Lagerbestand", "find": "&eErmittelt den nächsten Shop in der Umgebung mit dem gesuchten Gegenstand.", - "reload": "&eLaded die config.yml von QuickShop neu", + "reload": "&eLädt die config.yml von QuickShop neu", "refill": "&eFügt eine gegebene Anzahl an Gegenständen dem Shop hinzu.", "empty": "&eEntfernt alle Items eines Shops", "debug": "&eAktiviert den Entwicklermodus", @@ -169,7 +169,11 @@ "removeall": "&eEntferne ALLE Shops eines bestimmten Spielers", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eEntferne ALLE Shops in einer bestimmten Welt", - "currency": "&eSetze oder entferne die Währungseinstellungen des Shops" + "currency": "&eSetze oder entferne die Währungseinstellungen des Shops", + "ban": "&eBannt einen Spieler vom Shop", + "unban": "&eEntbannt einen Spieler vom Shop", + "freeze": "&e(De)aktiviere Shop-Handel", + "lock": "&eÄndere den Lock-Status des Shops" }, "disabled": "&cDieser Befehl ist deaktiviert: &e{0}", "feature-not-enabled": "Dieses Feature ist nicht in der Config aktiviert." @@ -185,7 +189,10 @@ "stack-price": "{0} pro {1}x {2}", "unlimited": "Unlimitiert ", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Ausverkauft", + "out-of-space": "Kein Platz", + "freeze": "Handeln deaktiviert" }, "controlpanel": { "setowner": "&aBesitzer: &b{0} &e[&d&lÄndern&e]", @@ -210,7 +217,11 @@ "item": "&aShopitem: {0} &e[&d&lÄndern&e]", "item-hover": "&eKlicke, um das Shopitem zu ändern", "currency": "&aWährung: &b{0} &e[&d&lÄndern&e]", - "currency-hover": "&eKlicke um die Währung zu setzen oder zu entfernen, welcher dieser Shop verwendet" + "currency-hover": "&eKlicke um die Währung zu setzen oder zu entfernen, welcher dieser Shop verwendet", + "lock": "&eShop Sperre: &b{0} &e[&d&lÄndern&e]", + "lock-hover": "&eAktiviere/Deaktiviere Sperrschutz des Shops.", + "freeze": "&eFreeze Modus: &b{0} &e[&d&lÄndern&e]", + "freeze-hover": "&eÄndere den Freeze-Status des Shops." }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/el-GR/messages.json b/src/main/resources/lang/el-GR/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/el-GR/messages.json +++ b/src/main/resources/lang/el-GR/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/en-US/messages.json b/src/main/resources/lang/en-US/messages.json index 599c0562e..9b4028663 100644 --- a/src/main/resources/lang/en-US/messages.json +++ b/src/main/resources/lang/en-US/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency setting of the shop" + "currency": "&eSet or remove the currency setting of the shop", + "ban": "&eBans a player from the shop", + "unban": "&eUnbans a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop's lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "This feature is not enabled in the config file." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trading disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable the shop's lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle the shop's freeze status." }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/es-ES/messages.json b/src/main/resources/lang/es-ES/messages.json index ef70ed121..17b4c29b7 100644 --- a/src/main/resources/lang/es-ES/messages.json +++ b/src/main/resources/lang/es-ES/messages.json @@ -4,7 +4,7 @@ "translation-version": "&c&lVersión soportada: &b&lReremake", "translation-contributors": "Contribuidores: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken y Andre_601", "translation-country": "&c&lZona de idioma: &b&lEspañol (es_ES)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cNo se pudo encontrar ninguna QuickShop. Tienes que mirar hacia una.", "no-anythings-in-your-hand": "&cNo hay nada en tu mano.", "no-permission": "&cNo tienes permiso para hacer eso.", @@ -169,7 +169,11 @@ "removeall": "&eElimina todas las tiendas de un jugador especificado", "transfer": "&eTransferir TODAS las tiendas de alguien a otros", "removeworld": "&ese removieron ALL tiendas en el mundo", - "currency": "&eEstablecer o remover la configuración de divisa en la tienda" + "currency": "&eEstablecer o remover la configuración de divisa en la tienda", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cEste comando esta deshabilitado: &e{0}", "feature-not-enabled": "La característica no está habilitada en la configuración." @@ -185,7 +189,10 @@ "stack-price": "{0} por {1}x {2}", "unlimited": "Ilimitado", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aPropietario: &b{0} &e[&d&lCambiar&e]", @@ -210,7 +217,11 @@ "item": "&aObjeto de Tienda: {0} &e[&d&lCambiar&e]", "item-hover": "&eClic para cambiar el artículo de la tienda", "currency": "&aMoneda: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick para establecer o remover la divisa que utiliza la tienda" + "currency-hover": "&eClick para establecer o remover la divisa que utiliza la tienda", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/fi-FI/messages.json b/src/main/resources/lang/fi-FI/messages.json index ced8b4c6a..2b1064186 100644 --- a/src/main/resources/lang/fi-FI/messages.json +++ b/src/main/resources/lang/fi-FI/messages.json @@ -4,7 +4,7 @@ "translation-version": "Tuettu versio: Reremake", "translation-contributors": "Avustajat: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Kielialue: Suomi (fi_FI)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cQuickShoppia ei löytynyt. Sinun täytyy katsoa yhtä.", "no-anythings-in-your-hand": "&cKädessäsi ei ole mitään.", "no-permission": "&cSinulla ei ole oikeutta tehdä noin.", @@ -169,7 +169,11 @@ "removeall": "&ePoista KAIKKI kaupat kyseiseltä pelaajalta", "transfer": "&eSiirrä jonkun KAIKKI kaupat toiselle", "removeworld": "&ePoista KAIKKI kaupat kyseisestä maailmasta", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Rajaton", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOmistaja: &b{0} &e[&dvaihda&e]", @@ -210,7 +217,11 @@ "item": "&aKaupan tuote: {0} &e[&d&|Vaihda&e]", "item-hover": "&ePaina vaihtaaksesi kaupan esinettä", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/fr-FR/messages.json b/src/main/resources/lang/fr-FR/messages.json index 1b387a2c0..4b635d982 100644 --- a/src/main/resources/lang/fr-FR/messages.json +++ b/src/main/resources/lang/fr-FR/messages.json @@ -4,7 +4,7 @@ "translation-version": "Version suportée: Reremake", "translation-contributors": "Contributeurs : Timtower, Netherfoam, KaiNoMood, Mgazul, JackThePicken, Andre_601 et brunopaiva15, HiiRaZ", "translation-country": "Langue: Français (fr_FR)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cImpossible de trouver un QuickShop. Vous devez en regarder un.", "no-anythings-in-your-hand": "&cVous n'avez aucun objet dans votre main.", "no-permission": "&cVous n'avez pas la permission de faire ceci.", @@ -169,7 +169,11 @@ "removeall": "&eSupprimer toutes les boutiques d'un joueur spécifié", "transfer": "&eTransférer TOUS les shops d'un joueur vers un autre", "removeworld": "&eSupprime TOUTES les boutiques dans un monde spécifié", - "currency": "&eDéfinir ou supprimer les paramètres actuelles de la boutique" + "currency": "&eDéfinir ou supprimer les paramètres actuelles de la boutique", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cCette commande est désactivée : &e{0}", "feature-not-enabled": "La fonctionnalité n'est pas activée dans la configuration." @@ -185,7 +189,10 @@ "stack-price": "{0} par {1} x {2}", "unlimited": "Illimité", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aPropriétaire: &b{0} &e[&dChanger&e]", @@ -210,7 +217,11 @@ "item": "&aIllimité: {0} &e[&d&lChanger&e]", "item-hover": "&eCliquez pour changer l'objet de la boutique", "currency": "blocks away from you", - "currency-hover": "&eCliquez pour définir ou supprimer le mode utilisée par cette boutique" + "currency-hover": "&eCliquez pour définir ou supprimer le mode utilisée par cette boutique", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/he-IL/messages.json b/src/main/resources/lang/he-IL/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/he-IL/messages.json +++ b/src/main/resources/lang/he-IL/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/hu-HU/messages.json b/src/main/resources/lang/hu-HU/messages.json index dbe7e366d..ca48feb31 100644 --- a/src/main/resources/lang/hu-HU/messages.json +++ b/src/main/resources/lang/hu-HU/messages.json @@ -4,7 +4,7 @@ "translation-version": "Támogatott Verzió: Reremake", "translation-contributors": "Közreműködők: Timtower, Netherfoam, KaiNoMood and Mgazul", "translation-country": "Nyelv Zóna: Magyar (hu_HU)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cEz nem egy bolt amire nézel.", "no-anythings-in-your-hand": "&cNincs semmi a kezedben.", "no-permission": "&cNincs jogod ehhez!", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per x{1} {2}", "unlimited": "Korlátlan", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aTulajdonos: &b{0} &e[&d&lMegváltoztatás&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eKlikk, hogy átváltoztasd a bolt tárgyát", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/it-IT/messages.json b/src/main/resources/lang/it-IT/messages.json index c44013a65..d9651283b 100644 --- a/src/main/resources/lang/it-IT/messages.json +++ b/src/main/resources/lang/it-IT/messages.json @@ -4,7 +4,7 @@ "translation-version": "Versione di Supporto: Reremake", "translation-contributors": "Collaboratori: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (it_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cImpossibile trovare un negozio. È necessario guardarne uno.", "no-anythings-in-your-hand": "&cNon hai nulla in mano.", "no-permission": "&cNon hai il permesso per farlo.", @@ -169,7 +169,11 @@ "removeall": "&eRimuovi TUTTI i negozi di un giocatore specificato", "transfer": "&eTrasferisci tutti i negozi di qualcuno ad un altro player", "removeworld": "&eRimuovi tutti i negozi in uno specifico mondo", - "currency": "&eImposta o rimuove le impostazioni di valuta del negozio" + "currency": "&eImposta o rimuove le impostazioni di valuta del negozio", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cQuesto comando è disabilitato: &e{0}", "feature-not-enabled": "La funzione non è abilitata nel config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Illimitato", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aProprietario: &b{0} &e[&d&lCambia&e]", @@ -210,7 +217,11 @@ "item": "&aElemento negozio: {0} &e[&d&lCambia&e]", "item-hover": "&eClick per cambiare l'elemento del negozio", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClicca per impostare o rimuovere la valuta che questo negozio sta usando" + "currency-hover": "&eClicca per impostare o rimuovere la valuta che questo negozio sta usando", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ja-JP/messages.json b/src/main/resources/lang/ja-JP/messages.json index 636eb4a6e..09c7aa7a4 100644 --- a/src/main/resources/lang/ja-JP/messages.json +++ b/src/main/resources/lang/ja-JP/messages.json @@ -4,7 +4,7 @@ "translation-version": "&c&lサポートバージョン: &b&lReremake", "translation-contributors": "貢献者: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken, Andre_601 and Namiu", "translation-country": "&c&l言語圏: &b&l日本語 (ja_JP)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cQuickShopが見つかりませんでした。確認する必要があります。", "no-anythings-in-your-hand": "&cあなたは手に何も持っていません。", "no-permission": "&cあなたは権限を持っていないため実行できません。", @@ -169,7 +169,11 @@ "removeall": "&e指定したプレイヤーのすべてのショップを削除します", "transfer": "&e自分のすべてのショップを指定したプレイヤーに譲渡します", "removeworld": "&e指定したワールド内のすべてのショップを削除します", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} / {1}個 {2}", "unlimited": "無制限", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aオーナー: &b{0} &e[&d&l変更&e]", @@ -210,7 +217,11 @@ "item": "&aショップアイテム: {0} &e[&d&l変更&e]", "item-hover": "&eショップアイテムを変更するにはクリックしてください", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ko-KR/messages.json b/src/main/resources/lang/ko-KR/messages.json index ff52f4195..239989022 100644 --- a/src/main/resources/lang/ko-KR/messages.json +++ b/src/main/resources/lang/ko-KR/messages.json @@ -4,7 +4,7 @@ "translation-version": "지원 버전: Reremake", "translation-contributors": "기여자: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "언어 지역: 한국어 (Ko)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&c퀵샵을 찾을수 없습니다. 상점을 보고있어야만합니다!", "no-anythings-in-your-hand": "&c당신의 손에 아무것도 없습니다.", "no-permission": "&c이것을 하기위해선 권한이 필요합니다.", @@ -169,7 +169,11 @@ "removeall": "&e지정된 플레이어의 모든 상점을 제거합니다.", "transfer": "&e누군가의 모든 가게를 다른 곳으로 옮깁니다.", "removeworld": "&e지정된 월드의 모든 상점을 제거합니다.", - "currency": "&a상점의 통화 설정을 설정하거나 제거합니다." + "currency": "&a상점의 통화 설정을 설정하거나 제거합니다.", + "ban": "&e플레이어 차단", + "unban": "&e플레이어 차단헤제", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&c이 명령어는 비활성화 되어있습니다: &e{0}", "feature-not-enabled": "이옵션은 컨피그에서 비활성 상태입니다" @@ -185,7 +189,10 @@ "stack-price": "아이템 {2}, {1} 개당 {0}원", "unlimited": "무제한", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&a주인: &b{0} &e[&d&l바꾸기&e]", @@ -210,7 +217,11 @@ "item": "&a상점 아이템: {0} &e[&d&l변경&e]", "item-hover": "&e클릭하여 상점의 아이템을 변경합니다", "currency": "&c통화 : &b{0} &e[&d&l설정&e]", - "currency-hover": "&e클릭하여 이 상점이 사용중인 통화를 설정하거나 제거합니다." + "currency-hover": "&e클릭하여 이 상점이 사용중인 통화를 설정하거나 제거합니다.", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/nl-NL/messages.json b/src/main/resources/lang/nl-NL/messages.json index c21f533f6..dc0e18600 100644 --- a/src/main/resources/lang/nl-NL/messages.json +++ b/src/main/resources/lang/nl-NL/messages.json @@ -4,7 +4,7 @@ "translation-version": "ondersteunende versie: Reremake", "translation-contributors": "Medewerkers", "translation-country": "Taal Zone: Engels (nl_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cGeen QuickShop gevonden, je moet naar een QuickShop kijken.", "no-anythings-in-your-hand": "&cJe hebt niks in je hand.", "no-permission": "&cJe hebt hiervoor geen rechten.", @@ -169,7 +169,11 @@ "removeall": "&eVerwijder ALLE winkels van een bepaalde speler", "transfer": "&eTransfer iemands ALLE winkels naar andere", "removeworld": "&eVerwijder alle winkels in een bepaalde wereld", - "currency": "&eSet of verwijder de valuta instellingen van de winkel" + "currency": "&eSet of verwijder de valuta instellingen van de winkel", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cDeze opdracht is uitgeschakeld: &e{0}", "feature-not-enabled": "De functie niet ingeschakeld in de config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Onbeperkt", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aEigenaar: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop item: {0} &e[&d&lChange&e]", "item-hover": "&eKlik om winkel item te wijzigen", "currency": "&aValuta: &b{0} e[&d&lSet&e]", - "currency-hover": "&eKlik om de valuta die deze winkel gebruikt in te stellen of te verwijderen" + "currency-hover": "&eKlik om de valuta die deze winkel gebruikt in te stellen of te verwijderen", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/no-NO/messages.json b/src/main/resources/lang/no-NO/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/no-NO/messages.json +++ b/src/main/resources/lang/no-NO/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/pl-PL/messages.json b/src/main/resources/lang/pl-PL/messages.json index 0229cb3eb..2605e6509 100644 --- a/src/main/resources/lang/pl-PL/messages.json +++ b/src/main/resources/lang/pl-PL/messages.json @@ -4,7 +4,7 @@ "translation-version": "Wspierana wersja: Reremake", "translation-contributors": "Współtwórcy: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken i Andre_601", "translation-country": "Język: Polski (pl_PL)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cNie można znaleźć QuickShop. Musisz na niego patrzeć.", "no-anythings-in-your-hand": "&cW twojej ręce nic nie ma.", "no-permission": "&cNie masz uprawnień, aby to zrobić.", @@ -169,7 +169,11 @@ "removeall": "&eUsuń WSZYSTKIE sklepy określonego gracza", "transfer": "&ePrzenieś czyjeś WSZYSTKIE sklepy do innych", "removeworld": "&eUsuń WSZYSTKIE sklepy w określonym świecie", - "currency": "&eUstaw lub usuń ustawienia waluty sklepu" + "currency": "&eUstaw lub usuń ustawienia waluty sklepu", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cTa komenda jest wyłączona: &e{0}", "feature-not-enabled": "Funkcja nie jest włączona w konfiguracji." @@ -185,7 +189,10 @@ "stack-price": "{0} za {1}x {2}", "unlimited": "Nieograniczony", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aWłaściciel: &b{0} &e[&d&lZmień&e]", @@ -210,7 +217,11 @@ "item": "&aPrzedmiot sklepu: {0} &e[&d&lZmień&e]", "item-hover": "&eKliknij, aby zmienić przedmiot sklepu", "currency": "&aWaluta: &b{0} &e[&d&lUstaw&e]", - "currency-hover": "&eKliknij, aby ustawić lub usunąć walutę, której używa ten sklep" + "currency-hover": "&eKliknij, aby ustawić lub usunąć walutę, której używa ten sklep", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/pt-BR/messages.json b/src/main/resources/lang/pt-BR/messages.json index 82f6d758f..70bccbf2f 100644 --- a/src/main/resources/lang/pt-BR/messages.json +++ b/src/main/resources/lang/pt-BR/messages.json @@ -4,7 +4,7 @@ "translation-version": "Versão de suporte: Remake", "translation-contributors": "Contribuidores: Torre de Timor, Netherfoam, KaiNoMood, Mgazul, JackTheChicken e Andre_601", "translation-country": "Zona do idioma: Português Brasileiro (pt_BR)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "Não conseguimos encontrar uma QuickShop. Você precisa estar olhando para uma.", "no-anythings-in-your-hand": "&cNão há nada na sua mão.", "no-permission": "&cVocê não tem permissão para fazer isso.", @@ -32,9 +32,9 @@ "you-cant-afford-to-buy": "&cIsto custa {0}, mas você só tem {1}", "negative-amount": "&cVocê não pode trocar com valores negativos", "not-a-number": "&cVocê só pode inserir um número, sua entrada foi {0}.", - "exceeded-maximum": "&cThe value exceeded the maximum value in Java.", + "exceeded-maximum": "&cO valor excedeu o valor máximo em Java.", "not-a-integer": "&cVocê deve inserir um número, sua entrada foi {0}.", - "player-bought-from-your-store": "&c{0} purchased {1} {2} from your shop, and you earned {3}.", + "player-bought-from-your-store": "&c{0} comprou {1} {2} da sua loja e você pagou {3} em impostos.", "shop-out-of-stock": "&5Sua loja em {0}, {1}, {2} ficou sem {3}!", "shop-has-no-space": "&cA loja só tem espaço para mais {0} de {1}.", "you-dont-have-that-many-items": "&cVocê só tem {0} de {1}.", @@ -44,14 +44,14 @@ "fee-charged-for-price-change": "&aVocê pagou &c{0}&a para mudar o valor.", "price-is-now": "&aO novo preço desta loja é &e{0}", "thats-not-a-number": "&cNumero inválido", - "forbidden-vanilla-behavior": "&cThe operation is forbidden due to it not being consistent with vanilla behavior", + "forbidden-vanilla-behavior": "&cA operação é proibida porque ela não é consistente com o comportamento vanilla", "no-price-given": "&cPor favor, insira um preço válido.", "average-price-nearby": "&aPreço médio: &e{0}", "shop-has-changed": "&cA loja que você tentou usar mudou desde que você clicou nela!", "shop-not-exist": "&cNão há uma loja.", - "nearby-shop-this-way": "&aShop is {0} blocks away from you.", - "nearby-shop-header": "&aNearby Shop matching &b{0}&a:", - "nearby-shop-entry": "&a- Info:{0} &aPrice:&b{1} &ax:&b{2} &ay:&b{3} &az:&b{4} &adistance: &b{5} &ablock(s)", + "nearby-shop-this-way": "&aA loja está a {0} blocos de você.", + "nearby-shop-header": "&aProcurando loja com item &b{0}&a:", + "nearby-shop-entry": "&a- Infoormação:{0} &aPreço:&b{1} &ax:&b{2} &ay:&b{3} &az:&b{4} &adistância: &b{5} &abloco(s)", "no-nearby-shop": "&cNenhuma loja próxima com {0}.", "buying-more-than-selling": "&cCUIDADO: Você está comprando itens por mais do que os está vendendo!", "not-enough-space": "&cVocê só tem espaço para mais {0}!", @@ -80,8 +80,8 @@ "purchase-failed": "&cA compra falhou: Erro interno, entre em contato com o administrador do servidor.", "no-pending-action": "&cVocê não tem nenhuma ação pendente", "permission-denied-3rd-party": "&cPermissão negada: Plugin de terceiros [{0}].", - "shops-removed-in-world": "&eTotal &b{0}&e shops has been deleted in world &b{1}&e.", - "world-not-exists": "&cThe world &e{0}&c doesn't exist", + "shops-removed-in-world": "&eTotal &b{0}&e lojas foi excluído no mundo &b{1}&e.", + "world-not-exists": "&cO mundo &e{0}&c não existe", "menu": { "successful-purchase": "&aComprado com sucesso:", "successfully-sold": "&aVendido com sucesso:", @@ -129,7 +129,7 @@ "reloading": "&aRecarregando...", "cleaned": "&aRemovido &e{0}&a lojas.", "no-type-given": "&cUse: /qs find ", - "no-world-given": "&cPlease specify a world name", + "no-world-given": "&cPor favor, especifique um nome do mundo", "bulk-size-not-set": "&cUse: /qs find ", "bulk-size-now": "&aAgora negociando &e{0}x {1}", "invalid-bulk-amount": "&cO valor {0} é maior que o tamanho máximo da pilha ou menor que um", @@ -138,7 +138,7 @@ "no-amount-given": "&cNenhuma quantidade fornecida. Use &a/qs refill &c", "now-debuging": "&aModo de desenvolvedor &cativado &acom sucesso. Recarregando QuickShop...", "now-nolonger-debuging": "&aModo de Desenvolvedor &cdesabilitado &acom sucesso. Recarregando QuickShop...", - "wrong-args": "&cInvalid arguments. Use &l/qs help &cto see a list of commands.", + "wrong-args": "&cArgumentos inválidos. Use &l/qs help &cpara ver uma lista de comandos.", "description": { "title": "&aAjuda do QuickShop", "unlimited": "&eDá um estoque ilimitado para a loja.", @@ -168,11 +168,15 @@ "language": "&eAlterar o idioma atualmente utilizado", "removeall": "&eRemover TODAS as lojas de um jogador", "transfer": "&eTransfira TODAS as lojas de alguém para outra", - "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "removeworld": "&eRemover TODAS as lojas em um mundo específico", + "currency": "&eDefinir ou remover as configurações de moeda da loja", + "ban": "&eBanir um jogador da loja", + "unban": "&eDesbanir um jogador da loja", + "freeze": "&eDesativar ou Ativar o comércio de lojas", + "lock": "&eTrocar o status do bloqueio da loja" }, - "disabled": "&cThis command is disabled: &e{0}", - "feature-not-enabled": "The feature not enabled in config." + "disabled": "&cEste comando está desativado: &e{0}", + "feature-not-enabled": "O recurso não habilitado nas configurações." }, "signs": { "selling": "Vendendo {0}", @@ -185,7 +189,10 @@ "stack-price": "{0} por {1}x {2}", "unlimited": "Ilimitado", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Sem Estoque", + "out-of-space": "Sem espaço", + "freeze": "Troca desabilitada" }, "controlpanel": { "setowner": "&aProprietário: &b{0} &e[&d&lMudar&e]", @@ -209,8 +216,12 @@ "stack-hover": "&eClique para definir o valor do pacote. Deixe 1 para comportamento normal.", "item": "&aEstoque ilimitado: {0} &e[&d&lMudar&e]", "item-hover": "&eClique para mudar o item da loja", - "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency": "&aPreço: &b{0} &e[&d&lMudar&e]", + "currency-hover": "&eClique para definir ou remover a moeda que esta loja está usando", + "lock": "&eBloqueio de Loja: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eAtivar/Desativar proteção de bloqueio de loja.", + "freeze": "&eModo de bloqueio: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eAlternar estado de congelamento da loja" }, "tableformat": { "full_line": "+---------------------------------------------------+", @@ -226,7 +237,7 @@ "price": "[preço]", "range": "[distância]", "amount": "[quantidade]", - "currency": "[currency name]", + "currency": "Nome da Moeda", "item": "[item]" }, "updatenotify": { @@ -252,7 +263,7 @@ "Doutor, o QuickShop tem uma nova atualização {0}! Você deve atualizar~", "Ko~ko~da~yo~ O QuickShop tem uma nova atualização {0}~" ], - "remote-disable-warning": "&cThis version of QuickShop is marked disabled by remote server, meaning this version may have serious problem, get details from our Spigot plugin page: {0}. This warning will continue to appear untill you switch to a stable version, but it will not affect your server's performence.", + "remote-disable-warning": "&cEsta versão do QuickShop está marcada como desativada pelo servidor remoto, o que significa que esta versão pode ter problemas sérios, obtenha detalhes na nossa página do SpigotMC: {0}. Este aviso irá aparecer e enviar spam ao console até que você use outra versão não desabilitada para substituir esta, não comprometa o seu servidor.", "label": { "unstable": "[Instável]", "stable": "[Estável]", @@ -296,13 +307,13 @@ "qa-issues": "&eProblemas de garantia de qualidade: &b{0}%", "help-us": "&a[Ajude-nos a melhorar a qualidade da tradução]" }, - "currency-not-exists": "&cCannot find the currency that you want to set. Maybe the spelling is wrong or that currency isn't available in this world.", - "currency-set": "&aShop currency successfully set to {0}.", - "currency-unset": "&aShop currency removed successfully. Using default settings now.", - "currency-not-support": "&cThe economy plugin doesn't support the multi-economy feature.", - "item-not-exist": "&cThe item &e{0} &cdoes not exist, please check your spelling.", - "backup-success": "&aBackup successfully.", - "console-only": "&cThis command only can be executed by Console.", - "console-only-danger": "&cThis is a danger command so that only can be executed by Console.", - "clean-warning": "&eThis command will purge &call &e shops if the shop is damaged or created in disallowed worlds or selling/buying disallowed items and &c&lIN NOT LOADED WORLD SHOPS&e, make sure you have full backup of your shops data and use &b/qs cleanghost confirm &eto continue." + "currency-not-exists": "&cNão foi possível encontrar a moeda que deseja definir. Talvez a ortografia esteja errada ou a moeda não esteja disponível neste mundo.", + "currency-set": "&aMoeda da loja definida com sucesso para {0}.", + "currency-unset": "&aMoeda da loja removida com sucesso. Usando as configurações padrão agora.", + "currency-not-support": "&cO plugin de economia não suporta o recurso de multi-economia.", + "item-not-exist": "&cO item &e{0} &cnão existe, por favor, verifique a ortografia.", + "backup-success": "&aBackup realizado com sucesso.", + "console-only": "&cEste comando só pode ser executado pelo Console.", + "console-only-danger": "&cEste é um comando de perigo para que apenas possa ser executado pelo Console.", + "clean-warning": "&eEste comando irá apagar &chamar as lojas &e se a loja for danificada ou criada em mundos não permitidos ou venda/compra de itens não permitidos e &c&lIN NOT LOADED SHOPS&e, Certifique-se de ter um backup completo dos dados das suas lojas e use a limpeza &b/qs confirmar &epara continuar." } \ No newline at end of file diff --git a/src/main/resources/lang/pt-PT/messages.json b/src/main/resources/lang/pt-PT/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/pt-PT/messages.json +++ b/src/main/resources/lang/pt-PT/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ro-RO/messages.json b/src/main/resources/lang/ro-RO/messages.json index 559ea6f55..a84973a29 100644 --- a/src/main/resources/lang/ro-RO/messages.json +++ b/src/main/resources/lang/ro-RO/messages.json @@ -4,7 +4,7 @@ "translation-version": "Versiune suport: Reproducere", "translation-contributors": "Contribuitori: Turnul, Netherfoam, KaiNoMood, Mgazul, JackTheChicken și Andre_601", "translation-country": "Zona de Limbă: Engleză (ro_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cNu am putut gasi un magazin. Trebuie sa te uiti la unul.", "no-anythings-in-your-hand": "&cNu este nimic in mana.", "no-permission": "&cNu ai permisiunea să faci asta.\".", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/ru-RU/messages.json b/src/main/resources/lang/ru-RU/messages.json index ca37a105c..a32c409a3 100644 --- a/src/main/resources/lang/ru-RU/messages.json +++ b/src/main/resources/lang/ru-RU/messages.json @@ -4,7 +4,7 @@ "translation-version": "Поддерживаемая версия: Reremake", "translation-contributors": "Участники: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken и Andre_601", "translation-country": "Языковой регион: Русский (ru_RU)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cНе удалось найти игрока, который использует магазина. Возможно игрок не зарегистрирован.", "no-anythings-in-your-hand": "&cУ вас нет товаров в руках.", "no-permission": "У вас недостаточно прав.", @@ -169,7 +169,11 @@ "removeall": "&eУдалить ВСЕ магазины указанного игрока", "transfer": "&eПередайте кого-нибудь ВСЕ магазины в другие", "removeworld": "&eУдалить ВСЕ магазины в указанном мире", - "currency": "&eУстановить или удалить настройки валюты магазина" + "currency": "&eУстановить или удалить настройки валюты магазина", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cДанная команда недоступна: &e{0}", "feature-not-enabled": "Функция не включена в конфигурации." @@ -185,7 +189,10 @@ "stack-price": "{0} за {1}x {2}", "unlimited": "∞", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aВладелец: &b{0} &e[&d&lИзменить&e]", @@ -210,7 +217,11 @@ "item": "&aМагазин товара: {0} &e[&d&lИзменить&e]", "item-hover": "&eНажмите, чтобы изменить магазин товара", "currency": "&aВалюта: &b{0} &e[&d&lУстановить&e]", - "currency-hover": "&eНажмите, чтобы установить или удалить валюту, которую этот магазин использует" + "currency-hover": "&eНажмите, чтобы установить или удалить валюту, которую этот магазин использует", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/sr-SP/messages.json b/src/main/resources/lang/sr-SP/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/sr-SP/messages.json +++ b/src/main/resources/lang/sr-SP/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/sv-SE/messages.json b/src/main/resources/lang/sv-SE/messages.json index 486890ab4..fec07047d 100644 --- a/src/main/resources/lang/sv-SE/messages.json +++ b/src/main/resources/lang/sv-SE/messages.json @@ -4,7 +4,7 @@ "translation-version": "Supportversion: Reremake", "translation-contributors": "Medhjälpare: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken och Andre_601", "translation-country": "Språkområde: Engelska (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cKunde inte hitta en QuickShop. Du måste titta på en.", "no-anythings-in-your-hand": "&cDet finns inget i din hand.", "no-permission": "&cDu har inte tillåtelse till att göra detta.", @@ -169,7 +169,11 @@ "removeall": "&eTa bort alla butiker från en angiven spelare", "transfer": "&eÖverför alla butiker från en spelare till en annan", "removeworld": "&eTa bort ALLA butiker i angiven värld", - "currency": "&eSet eller ta bort valutainställningarna i butiken" + "currency": "&eSet eller ta bort valutainställningarna i butiken", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cDetta kommando är inaktiverat: &e{0}", "feature-not-enabled": "Funktionen är inte aktiverad i konfigurationen." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Obegränsad", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aÄgare: &b{0} &e[&d&lÄndra&e]", @@ -210,7 +217,11 @@ "item": "&aButikens produkt: {0} &e[&d&lÄndra&e]", "item-hover": "&eKlicka för att ändra butiksprodukten", "currency": "&aValuta: &b{0} &e[&d&lÄndra&e]", - "currency-hover": "&eKlicka för att ändra eller ta bort den valuta som denna butik använder" + "currency-hover": "&eKlicka för att ändra eller ta bort den valuta som denna butik använder", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/tr-TR/messages.json b/src/main/resources/lang/tr-TR/messages.json index d15fbc30c..17a8ac4cc 100644 --- a/src/main/resources/lang/tr-TR/messages.json +++ b/src/main/resources/lang/tr-TR/messages.json @@ -4,7 +4,7 @@ "translation-version": "Destek Versiyonu: Reremake", "translation-contributors": "Katkıda Bulunanlar: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Dil Bölgesi: Türkçe (tr_TR)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&sHiç QuickShop bulunamadı. Birine bakman lazım.", "no-anythings-in-your-hand": "&cElinde hiçbir şey yok.", "no-permission": "&cBunu yapmaya iznin yok.", @@ -169,7 +169,11 @@ "removeall": "&eBelirli bir oyuncunun BÜTÜN marketlerini kaldır", "transfer": "&eBirinin TÜM marketlerini bir başkasına devret", "removeworld": "&eBelirtilen dünya içindeki TÜM marketleri kaldırır", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{1} tane {2} başına {0}", "unlimited": "Sınırsız", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aSahibi: &b{0} &e[&d&lDeğiştir&e]", @@ -210,7 +217,11 @@ "item": "&aMarket Öğesi: {0} &e[&d&lDeğiştir&e]", "item-hover": "&eMarket öğesini değiştirmek için tıkla", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/uk-UA/messages.json b/src/main/resources/lang/uk-UA/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/uk-UA/messages.json +++ b/src/main/resources/lang/uk-UA/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/vi-VN/messages.json b/src/main/resources/lang/vi-VN/messages.json index 7ec7c6193..bb3d4ee94 100644 --- a/src/main/resources/lang/vi-VN/messages.json +++ b/src/main/resources/lang/vi-VN/messages.json @@ -4,7 +4,7 @@ "translation-version": "Support Version: Reremake", "translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601", "translation-country": "Language Zone: English (en_US)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.", "no-anythings-in-your-hand": "&cThere is nothing in your hand.", "no-permission": "&cYou do not have permission to do that.", @@ -169,7 +169,11 @@ "removeall": "&eRemove ALL shops of a specified player", "transfer": "&eTransfer someone's ALL shops to other", "removeworld": "&eRemove ALL shops in a specified world", - "currency": "&eSet or remove the currency settings of the shop" + "currency": "&eSet or remove the currency settings of the shop", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&cThis command is disabled: &e{0}", "feature-not-enabled": "The feature not enabled in config." @@ -185,7 +189,10 @@ "stack-price": "{0} per {1}x {2}", "unlimited": "Unlimited", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&aOwner: &b{0} &e[&d&lChange&e]", @@ -210,7 +217,11 @@ "item": "&aShop Item: {0} &e[&d&lChange&e]", "item-hover": "&eClick to change shop Item", "currency": "&aCurrency: &b{0} &e[&d&lSet&e]", - "currency-hover": "&eClick to set or remove the currency that this shop is using" + "currency-hover": "&eClick to set or remove the currency that this shop is using", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/zh-CN/messages.json b/src/main/resources/lang/zh-CN/messages.json index 8751d421c..2913d8ebc 100644 --- a/src/main/resources/lang/zh-CN/messages.json +++ b/src/main/resources/lang/zh-CN/messages.json @@ -4,7 +4,7 @@ "translation-version": "支持版本:Reremake", "translation-contributors": "开发贡献者:Timtower, Netherfoam, KaiNoMood JackTheChicken 和 Andre_601", "translation-country": "本地化语言:简体中文 (zh_CN)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&c无法找到商店,您需要注视着你想要操作的商店。", "no-anythings-in-your-hand": "&c你的手里没有任何物品。", "no-permission": "&c你没有权限这样做。", @@ -169,7 +169,11 @@ "removeall": "&e删除指定玩家的&b所有&r&e商店", "transfer": "&e将某人的所有商店转移给其他人", "removeworld": "&e删除指定世界中的所有商店", - "currency": "&e配置或禁用货币选项" + "currency": "&e配置或禁用货币选项", + "ban": "&e封禁商店中的玩家", + "unban": "&e解禁商店中的玩家", + "freeze": "&e禁用或启用商店交易", + "lock": "&e切换商店锁状态" }, "disabled": "&c此命令已禁用", "feature-not-enabled": "配置中未启用此功能。" @@ -185,7 +189,10 @@ "stack-price": "每{1}x {0}", "unlimited": "无限", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "缺货", + "out-of-space": "空间不足", + "freeze": "关闭交易" }, "controlpanel": { "setowner": "&a所有者: &b{0} &e[&d&l修改&e]", @@ -210,7 +217,11 @@ "item": "&a无限模式: {0} &e[&d&l切换&e]", "item-hover": "&e点击以更改商店物品", "currency": "&a货币: &b{0} &e[&d&l设置&e]", - "currency-hover": "&e点击以设置或移除商店使用的交易货币" + "currency-hover": "&e点击以设置或移除商店使用的交易货币", + "lock": "&e商店锁: &b{0} &e[&d&l切换&e]", + "lock-hover": "&e启用/禁用商店锁保护。", + "freeze": "&e冻结模式: &b{0} &e[&d&l切换&e]", + "freeze-hover": "&e切换商店冻结状态" }, "tableformat": { "full_line": "+---------------------------------------------------+", diff --git a/src/main/resources/lang/zh-TW/messages.json b/src/main/resources/lang/zh-TW/messages.json index 266005da6..3dba0127f 100644 --- a/src/main/resources/lang/zh-TW/messages.json +++ b/src/main/resources/lang/zh-TW/messages.json @@ -4,7 +4,7 @@ "translation-version": "支援版本:Reremake(重製版)", "translation-contributors": "貢獻人員 : Timtower、Netherfoam、KaiNoMood、Mgazul、JackTheChicken 和 Andre_601", "translation-country": "語言:&b&l繁體中文 Chinese Traditional(zh_TW)", - "language-version": "51", + "language-version": "53", "not-looking-at-shop": "&c無法找到儲物箱商店。你需要注視著儲物箱。", "no-anythings-in-your-hand": "&c手上沒有任何東西。", "no-permission": "&4你沒有使用該指令的許可權。", @@ -169,7 +169,11 @@ "removeall": "&e刪除該玩家的所有商店", "transfer": "&e我們將某人的所有商店轉移給其他人", "removeworld": "&e指定世界的商店已經全部刪除", - "currency": "&e設置或移除目前商店的貨幣" + "currency": "&e設置或移除目前商店的貨幣", + "ban": "&eBanning a player from the shop", + "unban": "&eUnbanning a player from the shop", + "freeze": "&eDisable or Enable shop trading", + "lock": "&eSwitch the shop lock status" }, "disabled": "&c這個指令被停用 : &e{0}", "feature-not-enabled": "該功能沒有在 config 中啟用。" @@ -185,7 +189,10 @@ "stack-price": "{0} {1} 個 {2} 元", "unlimited": "無限", "status-available": "&a", - "status-unavailable": "&c" + "status-unavailable": "&c", + "out-of-stock": "Out of Stock", + "out-of-space": "Out of Space", + "freeze": "Trade disabled" }, "controlpanel": { "setowner": "&a店主 : &b{0} &e[&d&l修改&e]", @@ -210,7 +217,11 @@ "item": "&a商店物品:{0} &e[&d&l修改&e]", "item-hover": "&e點擊修改商店物品", "currency": "&a目前 : &b{0} &e[&d&l設定&e]", - "currency-hover": "&e點擊設置或移除目前正在使用的商店貨幣" + "currency-hover": "&e點擊設置或移除目前正在使用的商店貨幣", + "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]", + "lock-hover": "&eEnable/Disable shop lock protection.", + "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]", + "freeze-hover": "&eToggle shop freeze status," }, "tableformat": { "full_line": "+---------------------------------------------------+",