diff --git a/.github/icons/Bukkit.png b/.github/icons/Bukkit.png
new file mode 100644
index 000000000..e1d9d0f0c
Binary files /dev/null and b/.github/icons/Bukkit.png differ
diff --git a/.github/icons/Discord.svg b/.github/icons/Discord.svg
new file mode 100644
index 000000000..75394438f
--- /dev/null
+++ b/.github/icons/Discord.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/.github/icons/Github.png b/.github/icons/Github.png
new file mode 100644
index 000000000..6dcb298ee
Binary files /dev/null and b/.github/icons/Github.png differ
diff --git a/.github/icons/Jenkins.svg b/.github/icons/Jenkins.svg
new file mode 100644
index 000000000..bd714dcf5
--- /dev/null
+++ b/.github/icons/Jenkins.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/.github/icons/MCBBS.png b/.github/icons/MCBBS.png
new file mode 100644
index 000000000..2ccaedaf6
Binary files /dev/null and b/.github/icons/MCBBS.png differ
diff --git a/.github/icons/Spigot.png b/.github/icons/Spigot.png
new file mode 100644
index 000000000..7f8cc476d
Binary files /dev/null and b/.github/icons/Spigot.png differ
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
deleted file mode 100644
index f271ad83b..000000000
--- a/.github/workflows/semgrep.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-on:
- pull_request: {}
- push:
- branches:
- - main
- - master
-name: Semgrep
-jobs:
- semgrep:
- name: Scan
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: returntocorp/semgrep-action@v1
- with:
- auditOn: push
- publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}
- publishDeployment: 1559
diff --git a/README.md b/README.md
index 691cd4349..9713021d7 100644
--- a/README.md
+++ b/README.md
@@ -7,21 +7,23 @@

[](https://app.fossa.com/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake?ref=badge_shield)
---
-[ ](https://discord.gg/bfefw2E)
--orange)
+-orange)


+
+
---
QuickShop is a shop plugin that allows players to easily sell/buy any items from a chest without any commands.
In fact, none of the commands that QuickShop provides are ever needed by a player.
QuickShop-Reremake is a fork of QuickShop NotLikeMe with more features, bug fixes and other improvements.
-QuickShop-Reremake is made by PotatoCraft Studio from the https://github.com/KaiKikuchi/QuickShop upstream repository.
+QuickShop-Reremake is made by PotatoCraft Studio from [KaiKikuchi's QuickShop upstream repository](https://github.com/KaiKikuchi/QuickShop).
## Support
-
-Open a new issue here: https://github.com/Ghost-chu/QuickShop-Reremake/issues
+| | |
+| :-: | :-: |
+| **Discord** | **Github Issues** |
## Features
@@ -42,23 +44,28 @@ Open a new issue here: https://github.com/Ghost-chu/QuickShop-Reremake/issues
- Powerful API [Reremake]
- Optimized performance [Reremake]
-
-## Builds
-
-Stable: [CodeMC.io Jenkins](https://ci.codemc.io/job/Ghost-chu/job/QuickShop-Reremake/)
-Snapshot: [CodeMC.io Jenkins](https://ci.codemc.io/job/Ghost-chu/job/QuickShop-Reremake-SNAPSHOT/)
-
-## Links
-- [SpigotMC](https://www.spigotmc.org/resources/62575/)
-- [BukkitDev](https://dev.bukkit.org/projects/quickshop-reremake)
-- [Minecraft Chinese Forum (MCBBS)](http://www.mcbbs.net/thread-809496-1-1.html)
-- [Relatev](http://www.relatev.com/forum.php?mod=viewthread&tid=2251)
-- [Jenkins](https://ci.codemc.io/job/Ghost-chu/job/QuickShop-Reremake/)
+## Downloads
+| | | |
+ | --- | --- | --- | --- |
+ | **Spigot** | **BukkitDev** | **MCBBS** | **Jenkins** |
## Contribute
-If you're a developer, you can contribute to the QuickShop code! Just make a fork and install the Lombok plugin, then make a pull request when you're done! Please try to follow [Google Java Style](https://google.github.io/styleguide/javaguide.html). Also do not increase the plugin version number. Thank you very much!
+
+[]()If you're a developer, you can contribute to the QuickShop code! Just make a fork and install the Lombok plugin,
+then make a pull request when you're done! Please try to
+follow [Google Java Style](https://google.github.io/styleguide/javaguide.html). Also do not increase the plugin version
+number. Thank you very much!
+
+To compile the QuickShop and debug it by yourself, please follow these steps:
+
+0. Make sure you're using Java16 JDK in your PATH.
+1. Compile sub-project: `cd ./src/integration/plotsquared/5 && mvn install && cd ../../../../`
+2. Compile main-project without signature by using debug proile: `mvn install -Pdebug`
+3. Start your server with extra flag to skip the QuickShop signature
+ checks: `-Dorg.maxgamer.quickshop.util.envcheck.skip.SIGNATURE_VERIFY`
## Maven
+
```XML
quickshop-repo
@@ -75,12 +82,8 @@ If you're a developer, you can contribute to the QuickShop code! Just make a for
## Bstats
-
-
-
[](https://bstats.org/plugin/bukkit/QuickShop-Reremake/3320)
-
-
## License
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake?ref=badge_large)
diff --git a/pom.xml b/pom.xml
index 010f69ec4..ee9a3559a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
QuickShop
- 4.0.9.7
+ 4.0.9.8org.maxgamer.quickshopGhost-chuUTF-8
@@ -418,7 +418,7 @@
org.apache.commonscommons-compress
- 1.20
+ 1.21com.griefcraft.lwc
@@ -470,7 +470,7 @@
com.github.MilkBowlVaultAPI
- 1.7
+ 1.7.1provided
@@ -546,7 +546,7 @@
me.clipplaceholderapi
- 2.10.9
+ 2.10.10provided
@@ -558,7 +558,7 @@
com.github.angeschossenLandsAPI
- 5.10.2
+ 5.13.0provided
@@ -609,7 +609,7 @@
org.spigotmcspigot-api
- 1.17-R0.1-SNAPSHOT
+ 1.17.1-R0.1-SNAPSHOTprovided
@@ -701,7 +701,7 @@
com.plotsquaredPlotSquared-Core
- 6.0.0-SNAPSHOT
+ 6.0.8-SNAPSHOTprovided
@@ -890,7 +890,7 @@
org.slf4jslf4j-nop
- 1.7.30
+ 1.7.31
@@ -932,5 +932,17 @@
+
+ com.github.alex9849.arm-shopbridge
+ armshopbridge
+ 1.2.5
+ provided
+
+
+ com.github.alex9849
+ advanced-region-market
+ 3.3.4
+ provided
+
diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java
index 8a5ebfdb5..430ddf44c 100644
--- a/src/main/java/org/maxgamer/quickshop/QuickShop.java
+++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java
@@ -116,7 +116,6 @@ public class QuickShop extends JavaPlugin {
@Getter
private final Map limits = new HashMap<>(15);
private final ConfigProvider configProvider = new ConfigProvider(this);
- @Getter
private final List timerTaskList = new ArrayList<>(3);
@Getter
private final GameVersion gameVersion = GameVersion.get(Util.getNMSVersion());
@@ -425,13 +424,13 @@ public class QuickShop extends JavaPlugin {
* used.
*/
- private boolean loadEcon() {
+ public boolean loadEcon() {
try {
// EconomyCore core = new Economy_Vault();
EconomyCore core = null;
switch (EconomyType.fromID(getConfig().getInt("economy-type"))) {
case UNKNOWN:
- setupBootError(new BootError(this.getLogger(), "Can't load the Economy provider, invaild value in config.yml."));
+ setupBootError(new BootError(this.getLogger(), "Can't load the Economy provider, invaild value in config.yml."), true);
return false;
case VAULT:
core = new Economy_Vault(this);
@@ -490,7 +489,7 @@ public class QuickShop extends JavaPlugin {
return false;
}
if (!core.isValid()) {
- setupBootError(BuiltInSolution.econError());
+ setupBootError(BuiltInSolution.econError(), false);
return false;
} else {
this.economy = new Economy(this, ServiceInjector.getEconomyCore(core));
@@ -501,7 +500,7 @@ public class QuickShop extends JavaPlugin {
getLogger().log(Level.WARNING, "Something going wrong when loading up economy system", e);
getLogger().severe("QuickShop could not hook into a economy/Not found Vault or Reserve!");
getLogger().severe("QuickShop CANNOT start!");
- setupBootError(BuiltInSolution.econError());
+ setupBootError(BuiltInSolution.econError(), false);
getLogger().severe("Plugin listeners was disabled, please fix the economy issue.");
return false;
}
@@ -583,6 +582,7 @@ public class QuickShop extends JavaPlugin {
}
}
+
this.integrationHelper.callIntegrationsLoad(IntegrateStage.onLoadAfter);
getLogger().info("QuickShop " + getFork() + " - Early boot step - Booted up...");
}
@@ -622,6 +622,9 @@ public class QuickShop extends JavaPlugin {
if (shopManager != null) {
shopManager.clear();
}
+ if (DisplayItem.getNowUsing() == DisplayType.VIRTUALITEM) {
+ VirtualDisplayItem.VirtualDisplayItemManager.unload();
+ }
Util.debugLog("Cleaning up database queues...");
if (this.getDatabaseManager() != null) {
@@ -632,10 +635,13 @@ public class QuickShop extends JavaPlugin {
if (logWatcher != null) {
logWatcher.close();
}
- for (BukkitTask bukkitTask : timerTaskList) {
- if (!bukkitTask.isCancelled()) {
- bukkitTask.cancel();
+ Iterator taskIterator = timerTaskList.iterator();
+ while (taskIterator.hasNext()) {
+ BukkitTask task = taskIterator.next();
+ if (!task.isCancelled()) {
+ task.cancel();
}
+ taskIterator.remove();
}
if (calendarWatcher != null) {
calendarWatcher.stop();
@@ -645,8 +651,6 @@ public class QuickShop extends JavaPlugin {
this.updateWatcher.uninit();
}
- AsyncPacketSender.stop();
-
Util.debugLog("Cleanup tasks...");
try {
@@ -729,12 +733,6 @@ public class QuickShop extends JavaPlugin {
} catch (IOException exception) {
getLogger().log(Level.WARNING, "Failed to update configuration", exception);
}
- try {
- MsgUtil.loadI18nFile();
- } catch (Exception e) {
- getLogger().log(Level.WARNING, "Error when loading translation", e);
- }
-
}
private void runtimeCheck(@NotNull EnvCheckEntry.Stage stage) {
testing = true;
@@ -747,7 +745,7 @@ public class QuickShop extends JavaPlugin {
joiner.add(String.format("- [%s/%s] %s", result.getValue().getResult().getDisplay(), result.getKey().name(), result.getValue().getResultMessage()));
}
}
- setupBootError(new BootError(this.getLogger(), joiner.toString()));
+ setupBootError(new BootError(this.getLogger(), joiner.toString()), true);
//noinspection ConstantConditions
Util.mainThreadRun(() -> getCommand("qs").setTabCompleter(this)); //Disable tab completer
}
@@ -868,14 +866,8 @@ public class QuickShop extends JavaPlugin {
shopContainerWatcher = new ShopContainerWatcher();
if (display && DisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) {
displayDupeRemoverWatcher = new DisplayDupeRemoverWatcher();
- }
- if (display && DisplayItem.getNowUsing() != DisplayType.VIRTUALITEM) {
timerTaskList.add(displayDupeRemoverWatcher.runTaskTimerAsynchronously(this, 0, 1));
}
- if (display && DisplayItem.getNowUsing() == DisplayType.VIRTUALITEM) {
- AsyncPacketSender.start(this);
- }
-
/* Load all shops. */
shopLoader = new ShopLoader(this);
shopLoader.loadShops();
@@ -892,6 +884,7 @@ public class QuickShop extends JavaPlugin {
new CustomInventoryListener(this).register();
new ShopProtectionListener(this, this.shopCache).register();
new PluginListener(this).register();
+ new EconomySetupListener(this).register();
// shopVaildWatcher = new ShopVaildWatcher(this);
ongoingFeeWatcher = new OngoingFeeWatcher(this);
InternalListener internalListener = new InternalListener(this);
@@ -927,8 +920,8 @@ public class QuickShop extends JavaPlugin {
Util.debugLog("Registering watchers...");
calendarWatcher = new CalendarWatcher(this);
// shopVaildWatcher.runTaskTimer(this, 0, 20 * 60); // Nobody use it
- signUpdateWatcher.runTaskTimer(this, 0, 10);
- shopContainerWatcher.runTaskTimer(this, 0, 5); // Nobody use it
+ timerTaskList.add(signUpdateWatcher.runTaskTimer(this, 0, 10));
+ timerTaskList.add(shopContainerWatcher.runTaskTimer(this, 0, 5)); // Nobody use it
if (logWatcher != null) {
timerTaskList.add(logWatcher.runTaskTimerAsynchronously(this, 10, 10));
@@ -938,8 +931,6 @@ public class QuickShop extends JavaPlugin {
getLogger().info("Ongoing fee feature is enabled.");
timerTaskList.add(ongoingFeeWatcher.runTaskTimerAsynchronously(this, 0, getConfig().getInt("shop.ongoing-fee.ticks")));
}
-
-
integrationHelper.searchAndRegisterPlugins();
this.integrationHelper.callIntegrationsLoad(IntegrateStage.onEnableAfter);
new BukkitRunnable() {
@@ -1858,7 +1849,45 @@ public class QuickShop extends JavaPlugin {
getConfig().set("unlimited-shop-owner-change-account", "quickshop");
getConfig().set("config-version", ++selectedVersion);
}
+ if (selectedVersion == 133) {
+ getConfig().set("integration.griefprevention.delete-on-unclaim", false);
+ getConfig().set("integration.griefprevention.delete-on-claim-expired", false);
+ getConfig().set("config-version", ++selectedVersion);
+ }
+ if (selectedVersion == 134) {
+ getConfig().set("integration.griefprevention.delete-on-claim-resized", false);
+ getConfig().set("config-version", ++selectedVersion);
+ }
+ if (selectedVersion == 135) {
+ getConfig().set("integration.advancedregionmarket.enable", true);
+ getConfig().set("config-version", ++selectedVersion);
+ }
+ if (selectedVersion == 136) {
+ getConfig().set("shop.use-global-virtual-item-queue", null);
+ getConfig().set("config-version", ++selectedVersion);
+ }
+ if (selectedVersion == 137) {
+ getConfig().set("integration.griefprevention.create", null);
+ getConfig().set("integration.griefprevention.create", "INVENTORY");
+ getConfig().set("integration.griefprevention.trade", null);
+ getConfig().set("integration.griefprevention.trade", Collections.emptyList());
+
+ boolean oldValueUntrusted = getConfig().getBoolean("integration.griefprevention.delete-on-untrusted", false);
+ getConfig().set("integration.griefprevention.delete-on-untrusted", null);
+ getConfig().set("integration.griefprevention.delete-on-claim-trust-changed", oldValueUntrusted);
+
+ boolean oldValueUnclaim = getConfig().getBoolean("integration.griefprevention.delete-on-unclaim", false);
+ getConfig().set("integration.griefprevention.delete-on-unclaim", null);
+ getConfig().set("integration.griefprevention.delete-on-claim-unclaimed", oldValueUnclaim);
+
+ getConfig().set("integration.griefprevention.delete-on-subclaim-created", false);
+ getConfig().set("config-version", ++selectedVersion);
+ }
+ if (selectedVersion == 138) {
+ getConfig().set("integration.towny.whitelist-mode", true);
+ 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");
@@ -1883,9 +1912,11 @@ public class QuickShop extends JavaPlugin {
}
}
- public void setupBootError(BootError bootError) {
+ public void setupBootError(BootError bootError, boolean unregisterListeners) {
this.bootError = bootError;
- HandlerList.unregisterAll(this);
+ if (unregisterListeners) {
+ HandlerList.unregisterAll(this);
+ }
Bukkit.getScheduler().cancelTasks(this);
}
diff --git a/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java b/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java
index 6dbc690d3..dc02edcfa 100644
--- a/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java
+++ b/src/main/java/org/maxgamer/quickshop/api/ShopAPI.java
@@ -149,4 +149,10 @@ public class ShopAPI {
public @NotNull List getShopsInWorld(@NotNull World world) {
return new ArrayList<>(plugin.getShopManager().getShopsInWorld(world));
}
+
+
+ @Deprecated
+ public @Nullable Map getShop(@NotNull Chunk chunk) {
+ return plugin.getShopManager().getShops(chunk);
+ }
}
diff --git a/src/main/java/org/maxgamer/quickshop/chat/platform/minedown/BungeeQuickChat.java b/src/main/java/org/maxgamer/quickshop/chat/platform/minedown/BungeeQuickChat.java
index 0ddf405bb..1537101f8 100644
--- a/src/main/java/org/maxgamer/quickshop/chat/platform/minedown/BungeeQuickChat.java
+++ b/src/main/java/org/maxgamer/quickshop/chat/platform/minedown/BungeeQuickChat.java
@@ -19,7 +19,6 @@
package org.maxgamer.quickshop.chat.platform.minedown;
-import de.themoep.minedown.MineDown;
import net.md_5.bungee.api.chat.*;
import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
@@ -53,7 +52,7 @@ public class BungeeQuickChat implements QuickChat {
if (StringUtils.isEmpty(message)) {
return;
}
- receiver.spigot().sendMessage(new MineDown(message).toComponent());
+ receiver.spigot().sendMessage(TextComponent.fromLegacyText(message));
}
@Override
@@ -129,7 +128,9 @@ public class BungeeQuickChat implements QuickChat {
return new QuickComponentImpl(errorComponent);
}
- BaseComponent[] component = TextComponent.fromLegacyText(normalText + " " + MsgUtil.getMessage("menu.preview", player));
+ TextComponent component = new TextComponent(normalText + " " + MsgUtil.getMessage("menu.preview", player));
+ ComponentBuilder cBuilder = new ComponentBuilder(json);
+ component.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_ITEM, cBuilder.create()));
return new QuickComponentImpl(component);
}
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Clean.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Clean.java
index e47a3d759..aa6e4830c 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Clean.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Clean.java
@@ -27,6 +27,7 @@ import org.maxgamer.quickshop.command.CommandHandler;
import org.maxgamer.quickshop.shop.ContainerShop;
import org.maxgamer.quickshop.shop.Shop;
import org.maxgamer.quickshop.util.MsgUtil;
+import org.maxgamer.quickshop.util.Util;
import java.util.ArrayList;
import java.util.List;
@@ -45,7 +46,7 @@ public class SubCommand_Clean implements CommandHandler {
for (Shop shop : plugin.getShopManager().getAllShops()) {
try {
- if (shop.getLocation().getWorld() != null
+ if (Util.isLoaded(shop.getLocation())
&& shop.isSelling()
&& shop.getRemainingStock() == 0
&& shop instanceof ContainerShop) {
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_CleanGhost.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_CleanGhost.java
index 1b3effe5e..01b9a1d65 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_CleanGhost.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_CleanGhost.java
@@ -74,7 +74,7 @@ public class SubCommand_CleanGhost implements CommandHandler {
Util.mainThreadRun(shop::delete);
continue;
}
- if (shop.getLocation().getWorld() == null) {
+ if (!Util.isWorldLoaded(shop.getLocation())) {
MsgUtil.sendDirectMessage(sender,
ChatColor.YELLOW + "Deleting shop " + shop + " because the its world is not loaded.");
Util.mainThreadRun(shop::delete);
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Create.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Create.java
index daa6f68da..60e34e53b 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Create.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Create.java
@@ -116,13 +116,11 @@ public class SubCommand_Create implements CommandHandler {
continue;
}
- if (sender.isOnline()) {
- Result result = plugin.getPermissionChecker().canBuild(sender, b);
- if (!result.isSuccess()) {
- MsgUtil.sendMessage(sender, "3rd-plugin-build-check-failed", result.getMessage());
- Util.debugLog("Failed to create shop because the protection check has failed! Reason:" + result.getMessage());
- return;
- }
+ Result result = plugin.getPermissionChecker().canBuild(sender, b);
+ if (!result.isSuccess()) {
+ MsgUtil.sendMessage(sender, "3rd-plugin-build-check-failed", result.getMessage());
+ Util.debugLog("Failed to create shop because the protection check has failed! Reason:" + result.getMessage());
+ return;
}
BlockFace blockFace;
@@ -169,11 +167,13 @@ public class SubCommand_Create implements CommandHandler {
if (cmdArg.length == 1) {
return Collections.singletonList(MsgUtil.getMessage("tabcomplete.price", sender));
}
- if (cmdArg.length == 2) {
- return Collections.singletonList(MsgUtil.getMessage("tabcomplete.item", sender));
- }
- if (cmdArg.length == 3) {
- return Collections.singletonList(MsgUtil.getMessage("tabcomplete.amount", sender));
+ if (Util.isAir(sender.getInventory().getItemInMainHand().getType())) {
+ if (cmdArg.length == 2) {
+ return Collections.singletonList(MsgUtil.getMessage("tabcomplete.item", sender));
+ }
+ if (cmdArg.length == 3) {
+ return Collections.singletonList(MsgUtil.getMessage("tabcomplete.amount", sender));
+ }
}
return Collections.emptyList();
}
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Help.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Help.java
index dff961bad..31e531780 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Help.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Help.java
@@ -20,7 +20,6 @@
package org.maxgamer.quickshop.command.subcommand;
import lombok.AllArgsConstructor;
-import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import org.maxgamer.quickshop.QuickShop;
@@ -44,15 +43,36 @@ public class SubCommand_Help implements CommandHandler {
private void sendHelp(@NotNull CommandSender s, @NotNull String commandLabel) {
MsgUtil.sendMessage(s, "command.description.title");
- commandCheckLoop:
+
+ commandPrintingLoop:
for (CommandContainer container : plugin.getCommandManager().getCmds()) {
- final List requirePermissions = container.getPermissions();
- if (!container.isHidden() && requirePermissions != null && !requirePermissions.isEmpty()) {
- for (String requirePermission : requirePermissions) {
- if (requirePermission != null && !QuickShop.getPermissionManager().hasPermission(s, requirePermission)) {
- continue commandCheckLoop;
+ if (!container.isHidden()) {
+ boolean passed = false;
+ //selectivePermissions
+ final List selectivePermissions = container.getSelectivePermissions();
+ if (selectivePermissions != null) {
+ for (String selectivePermission : container.getSelectivePermissions()) {
+ if (selectivePermission != null && !selectivePermission.isEmpty()) {
+ if (QuickShop.getPermissionManager().hasPermission(s, selectivePermission)) {
+ passed = true;
+ break;
+ }
+ }
}
}
+ //requirePermissions
+ final List requirePermissions = container.getPermissions();
+ if (requirePermissions != null) {
+ for (String requirePermission : requirePermissions) {
+ if (requirePermission != null && !requirePermission.isEmpty() && !QuickShop.getPermissionManager().hasPermission(s, requirePermission)) {
+ continue commandPrintingLoop;
+ }
+ }
+ passed = true;
+ }
+ if (!passed) {
+ continue;
+ }
String commandDesc = MsgUtil.getMessage("command.description." + container.getPrefix(), s);
if (container.getDescription() != null) {
commandDesc = container.getDescription();
@@ -60,27 +80,12 @@ public class SubCommand_Help implements CommandHandler {
commandDesc = "Error: Subcommand " + container.getPrefix() + " # " + container.getClass().getCanonicalName() + " doesn't register the correct help description.";
}
}
- if (!container.isDisabled()) {
- MsgUtil.sendDirectMessage(s,
- ChatColor.GREEN
- + "/"
- + commandLabel
- + " "
- + container.getPrefix()
- + ChatColor.YELLOW
- + " - "
- + commandDesc);
- } else if (QuickShop.getPermissionManager().hasPermission(s, "quickshop.showdisabled")) {
- MsgUtil.sendDirectMessage(s,
- ChatColor.RED
- + "/"
- + commandLabel
- + " "
- + container.getPrefix()
- + ChatColor.GRAY
- + " - "
- + MsgUtil.getMessage("command.disabled", s, ChatColor.GRAY + container.getDisableText(s)));
-
+ if (container.isDisabled()) {
+ if (QuickShop.getPermissionManager().hasPermission(s, "quickshop.showdisabled")) {
+ MsgUtil.sendDirectMessage(s, MsgUtil.getMessage("command.format", s, commandLabel, container.getPrefix(), container.getDisableText(s)));
+ }
+ } else {
+ MsgUtil.sendDirectMessage(s, MsgUtil.getMessage("command.format", s, commandLabel, container.getPrefix(), commandDesc));
}
}
}
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Info.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Info.java
index dd6f37fff..382d4c786 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Info.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Info.java
@@ -26,7 +26,6 @@ import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
import org.maxgamer.quickshop.QuickShop;
import org.maxgamer.quickshop.command.CommandHandler;
-import org.maxgamer.quickshop.shop.ContainerShop;
import org.maxgamer.quickshop.shop.Shop;
import org.maxgamer.quickshop.shop.ShopChunk;
import org.maxgamer.quickshop.util.MsgUtil;
@@ -40,13 +39,11 @@ public class SubCommand_Info implements CommandHandler {
@Override
public void onCommand(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] cmdArg) {
- int buying, selling, doubles, chunks, worlds, doubleschests;
+ int buying, selling, chunks, worlds;
buying = 0;
selling = 0;
- doubles = 0;
chunks = 0;
worlds = 0;
- doubleschests = 0;
int nostock = 0;
for (Map> inWorld :
@@ -61,16 +58,9 @@ public class SubCommand_Info implements CommandHandler {
} else if (shop.isSelling()) {
selling++;
}
-
- if (shop instanceof ContainerShop && ((ContainerShop) shop).isDoubleShop()) {
- doubles++;
- } else if (shop.isSelling() && shop.getRemainingStock() == 0) {
+ if (shop.isSelling() && shop.isLoaded() && shop.getRemainingStock() == 0) {
nostock++;
}
-
- if (shop instanceof ContainerShop && ((ContainerShop) shop).isDoubleChestShop()) {
- doubleschests++;
- }
}
}
}
@@ -86,18 +76,11 @@ public class SubCommand_Info implements CommandHandler {
+ " chunks spread over "
+ worlds
+ " worlds.");
- MsgUtil.sendDirectMessage(sender,
- ChatColor.GREEN
- + ""
- + doubles
- + " double shops. ("
- + doubleschests
- + " shops created on double chest.)");
MsgUtil.sendDirectMessage(sender,
ChatColor.GREEN
+ ""
+ nostock
- + " out-of-stock shops (excluding doubles) which will be removed by /qs clean.");
+ + " out-of-stock loaded shops (excluding doubles) which will be removed by /qs clean.");
MsgUtil.sendDirectMessage(sender, ChatColor.GREEN + "QuickShop " + QuickShop.getVersion());
}
diff --git a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Update.java b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Update.java
index c6cf01888..f68895c96 100644
--- a/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Update.java
+++ b/src/main/java/org/maxgamer/quickshop/command/subcommand/SubCommand_Update.java
@@ -65,7 +65,7 @@ public class SubCommand_Update implements CommandHandler {
ChatColor.GREEN + "Successful! Please restart your server to apply the updated version!");
MsgUtil.sendDirectMessage(sender,
ChatColor.YELLOW + "Before you restarting the server, QuickShop won't working again.");
- plugin.setupBootError(new BootError(plugin.getLogger(), "Reboot required after update the plugin."));
+ plugin.setupBootError(new BootError(plugin.getLogger(), "Reboot required after update the plugin."), true);
});
}
diff --git a/src/main/java/org/maxgamer/quickshop/database/DatabaseHelper.java b/src/main/java/org/maxgamer/quickshop/database/DatabaseHelper.java
index 5ae248fb9..26225bc0b 100644
--- a/src/main/java/org/maxgamer/quickshop/database/DatabaseHelper.java
+++ b/src/main/java/org/maxgamer/quickshop/database/DatabaseHelper.java
@@ -66,6 +66,9 @@ public class DatabaseHelper {
private void createShopsTable() {
String sqlString = "CREATE TABLE " + plugin.getDbPrefix() + "shops (owner VARCHAR(255) NOT NULL, price double(32, 2) NOT NULL, itemConfig TEXT CHARSET utf8 NOT NULL, x INTEGER(32) NOT NULL, y INTEGER(32) NOT NULL, z INTEGER(32) NOT NULL, world VARCHAR(32) NOT NULL, unlimited boolean, type boolean, PRIMARY KEY (x, y, z, world) );";
+ if (manager.getDatabase() instanceof MySQLCore) {
+ sqlString = "CREATE TABLE " + plugin.getDbPrefix() + "shops (owner VARCHAR(255) NOT NULL, price double(32, 2) NOT NULL, itemConfig TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, x INTEGER(32) NOT NULL, y INTEGER(32) NOT NULL, z INTEGER(32) NOT NULL, world VARCHAR(32) NOT NULL, unlimited boolean, type boolean, PRIMARY KEY (x, y, z, world) );";
+ }
manager.runInstantTask(new DatabaseTask(sqlString));
}
@@ -87,6 +90,7 @@ public class DatabaseHelper {
* Verifies that all required columns exist.
*/
private void checkColumns() {
+ plugin.getLogger().info("Checking and updating database columns, it may take a while...");
DatabaseTask.Task checkTask = new DatabaseTask.Task() {
@Override
public void edit(PreparedStatement ps) {
@@ -133,11 +137,14 @@ public class DatabaseHelper {
Util.debugLog("Error to create EXTRA column: " + e.getMessage());
//ignore
}
+
if (manager.getDatabase() instanceof MySQLCore) {
manager.runInstantTask(new DatabaseTask("ALTER TABLE " + plugin
.getDbPrefix() + "messages MODIFY COLUMN message text CHARACTER SET utf8mb4 NOT NULL AFTER owner", checkTask));
+ manager.runInstantTask(new DatabaseTask("ALTER TABLE " + plugin
+ .getDbPrefix() + "shops MODIFY COLUMN itemConfig text CHARACTER SET utf8mb4 NOT NULL AFTER price", checkTask));
}
-
+ plugin.getLogger().info("Finished!");
}
public void cleanMessage(long weekAgo) {
@@ -166,7 +173,7 @@ public class DatabaseHelper {
ps.setInt(5, location.getBlockY());
ps.setInt(6, location.getBlockZ());
String worldName = "undefined";
- if (location.getWorld() != null) {
+ if (Util.isWorldLoaded(location)) {
worldName = location.getWorld().getName();
} else {
plugin.getLogger().warning("Warning: Shop " + shop + " had null world name due we will save it as undefined world to trying keep data.");
diff --git a/src/main/java/org/maxgamer/quickshop/database/DatabaseManager.java b/src/main/java/org/maxgamer/quickshop/database/DatabaseManager.java
index 448e83485..ecc7f2fc8 100644
--- a/src/main/java/org/maxgamer/quickshop/database/DatabaseManager.java
+++ b/src/main/java/org/maxgamer/quickshop/database/DatabaseManager.java
@@ -148,7 +148,6 @@ public class DatabaseManager {
* Internal method, runTasks in queue.
*/
private synchronized void runTask() { // synchronized for QUICKSHOP-WX
- synchronized (sqlQueue) {
if (sqlQueue.isEmpty()) {
return;
}
@@ -199,7 +198,6 @@ public class DatabaseManager {
} finally {
dbconnection.release();
}
- }
// try {
// this.database.getConnection().commit();
@@ -229,9 +227,7 @@ public class DatabaseManager {
*/
public void addDelayTask(DatabaseTask task) {
if (useQueue) {
- synchronized (sqlQueue) {
- sqlQueue.offer(task);
- }
+ sqlQueue.offer(task);
} else {
runInstantTask(task);
}
diff --git a/src/main/java/org/maxgamer/quickshop/event/QSEvent.java b/src/main/java/org/maxgamer/quickshop/event/QSEvent.java
index bd980985b..d862ac1dc 100644
--- a/src/main/java/org/maxgamer/quickshop/event/QSEvent.java
+++ b/src/main/java/org/maxgamer/quickshop/event/QSEvent.java
@@ -32,6 +32,14 @@ public abstract class QSEvent extends Event {
return handlers;
}
+ public QSEvent() {
+
+ }
+
+ public QSEvent(boolean async) {
+ super(async);
+ }
+
@NotNull
@Override
public HandlerList getHandlers() {
diff --git a/src/main/java/org/maxgamer/quickshop/event/ShopUpdateEvent.java b/src/main/java/org/maxgamer/quickshop/event/ShopUpdateEvent.java
index 5dd1bb577..9501219ec 100644
--- a/src/main/java/org/maxgamer/quickshop/event/ShopUpdateEvent.java
+++ b/src/main/java/org/maxgamer/quickshop/event/ShopUpdateEvent.java
@@ -39,6 +39,7 @@ public class ShopUpdateEvent extends QSEvent implements Cancellable {
* @param shop The shop bought from
*/
public ShopUpdateEvent(@NotNull Shop shop) {
+ super();
this.shop = shop;
}
diff --git a/src/main/java/org/maxgamer/quickshop/integration/IntegrationHelper.java b/src/main/java/org/maxgamer/quickshop/integration/IntegrationHelper.java
index 352a7b5c2..b31106de8 100644
--- a/src/main/java/org/maxgamer/quickshop/integration/IntegrationHelper.java
+++ b/src/main/java/org/maxgamer/quickshop/integration/IntegrationHelper.java
@@ -25,6 +25,7 @@ import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginManager;
import org.jetbrains.annotations.NotNull;
import org.maxgamer.quickshop.QuickShop;
+import org.maxgamer.quickshop.integration.advancedregionmarket.AdvancedShopRegionMarketIntegration;
import org.maxgamer.quickshop.integration.factionsuuid.FactionsUUIDIntegration;
import org.maxgamer.quickshop.integration.griefprevention.GriefPreventionIntegration;
import org.maxgamer.quickshop.integration.lands.LandsIntegration;
@@ -39,6 +40,7 @@ import org.maxgamer.quickshop.util.holder.Result;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
+import java.util.logging.Level;
public class IntegrationHelper extends QuickShopInstanceHolder {
@@ -55,6 +57,7 @@ public class IntegrationHelper extends QuickShopInstanceHolder {
integratedPluginNameMap.put("WorldGuard", WorldGuardIntegration.class);
//integratedPluginNameMap.put("FabledSkyblock", FabledIntegration.class);
integratedPluginNameMap.put("SuperiorSkyblock", SuperiorSkyblock2Integration.class);
+ integratedPluginNameMap.put("AdvancedRegionMarket", AdvancedShopRegionMarketIntegration.class);
}
private final Map integrations = new HashMap<>(7);
@@ -76,7 +79,11 @@ public class IntegrationHelper extends QuickShopInstanceHolder {
for (Map.Entry> entry : integratedPluginNameMap.entrySet()) {
String pluginName = entry.getKey();
if (pluginManager.isPluginEnabled(pluginName) && plugin.getConfig().getBoolean("integration." + pluginName.toLowerCase() + ".enable")) {
- register(entry.getValue());
+ try {
+ register(entry.getValue());
+ } catch (Exception exception) {
+ plugin.getLogger().log(Level.WARNING, "Failed to register integration " + entry.getKey() + "!", exception);
+ }
}
}
}
diff --git a/src/main/java/org/maxgamer/quickshop/integration/advancedregionmarket/AdvancedShopRegionMarketIntegration.java b/src/main/java/org/maxgamer/quickshop/integration/advancedregionmarket/AdvancedShopRegionMarketIntegration.java
new file mode 100644
index 000000000..f1a38cd3e
--- /dev/null
+++ b/src/main/java/org/maxgamer/quickshop/integration/advancedregionmarket/AdvancedShopRegionMarketIntegration.java
@@ -0,0 +1,168 @@
+/*
+ * This file is a part of project QuickShop, the name is AdvancedShopRegionMarketIntegration.java
+ * Copyright (C) PotatoCraft Studio and contributors
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+package org.maxgamer.quickshop.integration.advancedregionmarket;
+
+import net.alex9849.arm.events.RestoreRegionEvent;
+import net.alex9849.arm.regions.Region;
+import net.alex9849.armshopbridge.ArmShopBridge;
+import net.alex9849.armshopbridge.adapters.QuickShop4Adapter;
+import net.alex9849.armshopbridge.adapters.QuickShopAdapter;
+import net.alex9849.armshopbridge.interfaces.IShopPluginAdapter;
+import org.bukkit.Bukkit;
+import org.bukkit.Chunk;
+import org.bukkit.Location;
+import org.bukkit.World;
+import org.bukkit.entity.Player;
+import org.bukkit.event.EventHandler;
+import org.bukkit.event.EventPriority;
+import org.bukkit.event.HandlerList;
+import org.bukkit.event.Listener;
+import org.bukkit.event.server.PluginEnableEvent;
+import org.bukkit.util.Vector;
+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.*;
+import java.util.logging.Level;
+
+@IntegrationStage(loadStage = IntegrateStage.onEnableAfter)
+public class AdvancedShopRegionMarketIntegration extends QSIntegratedPlugin implements Listener {
+ public AdvancedShopRegionMarketIntegration(QuickShop plugin) {
+ super(plugin);
+ }
+
+ /**
+ * Return the integrated plugin name.
+ * For example, Residence
+ *
+ * @return integrated plugin
+ */
+ @Override
+ public @NotNull String getName() {
+ return "AdvancedShopRegionMarket";
+ }
+
+ /**
+ * Check if a player can create shop here
+ *
+ * @param player the player want to create shop
+ * @param location shop location
+ * @return If you can create shop here
+ */
+ @Override
+ public boolean canCreateShopHere(@NotNull Player player, @NotNull Location location) {
+ return true;
+ }
+
+ /**
+ * Check if a player can trade with shop here
+ *
+ * @param player the player want to trade with shop
+ * @param location shop location
+ * @return If you can trade with shop here
+ */
+ @Override
+ public boolean canTradeShopHere(@NotNull Player player, @NotNull Location location) {
+ return true;
+ }
+
+ /**
+ * Loading logic
+ * Execute Stage defined by IntegrationStage
+ */
+ @Override
+ public void load() {
+ scanAndUnregister();
+ }
+
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onPluginLoad(PluginEnableEvent event) {
+ if (event.getPlugin().getName().equals("ArmShopBridge")) {
+ scanAndUnregister();
+ }
+ }
+
+ private void scanAndUnregister() {
+ try {
+ if (Bukkit.getPluginManager().getPlugin("ArmShopBridge") == null) {
+ return;
+ }
+ List adapterList = new ArrayList<>();
+ ArmShopBridge.getInstance().getShopPluginAdapters().forEach(adapter -> {
+ if (adapter instanceof QuickShopAdapter || adapter instanceof QuickShop4Adapter) {
+ adapterList.add(adapter);
+ }
+ });
+ adapterList.forEach(ArmShopBridge.getInstance().getShopPluginAdapters()::remove);
+ Bukkit.getPluginManager().registerEvents(this, plugin);
+ } catch (Exception exception) {
+ plugin.getLogger().log(Level.WARNING, "Cannot to handle ARM-ShopBridge handlers, ignoring...", exception);
+ }
+ }
+
+ /**
+ * Unloding logic
+ * Will execute when Quickshop unloading
+ */
+ @Override
+ public void unload() {
+ HandlerList.unregisterAll(this);
+ }
+
+
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onShopNeedDeletion(RestoreRegionEvent event) {
+ Region region = event.getRegion();
+ Vector minPoint = region.getRegion().getMinPoint();
+ Vector maxPoint = region.getRegion().getMinPoint();
+ World world = region.getRegionworld();
+ Set chuckLocations = new HashSet<>();
+
+ for (int x = minPoint.getBlockX(); x <= maxPoint.getBlockX() + 16; x += 16) {
+ for (int z = minPoint.getBlockZ(); z <= maxPoint.getBlockZ() + 16; z += 16) {
+ chuckLocations.add(world.getChunkAt(x >> 4, z >> 4));
+ }
+ }
+
+
+ HashMap shopMap = new HashMap<>();
+
+ for (Chunk chunk : chuckLocations) {
+ Map shopsInChunk = plugin.getShopManager().getShops(chunk);
+ if (shopsInChunk != null) {
+ shopMap.putAll(shopsInChunk);
+ }
+ }
+ for (Map.Entry shopEntry : shopMap.entrySet()) {
+ Location shopLocation = shopEntry.getKey();
+ if (region.getRegion().contains(shopLocation.getBlockX(), shopLocation.getBlockY(), shopLocation.getBlockZ())) {
+ Shop shop = shopEntry.getValue();
+ if (shop != null) {
+ shop.onUnload();
+ shop.delete(false);
+ }
+ }
+ }
+ }
+}
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 e99482b16..be4f01393 100644
--- a/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java
+++ b/src/main/java/org/maxgamer/quickshop/integration/griefprevention/GriefPreventionIntegration.java
@@ -20,39 +20,291 @@
package org.maxgamer.quickshop.integration.griefprevention;
import me.ryanhamshire.GriefPrevention.Claim;
+import me.ryanhamshire.GriefPrevention.ClaimPermission;
import me.ryanhamshire.GriefPrevention.GriefPrevention;
+import me.ryanhamshire.GriefPrevention.events.TrustChangedEvent;
+import me.ryanhamshire.GriefPrevention.events.ClaimDeletedEvent;
+import me.ryanhamshire.GriefPrevention.events.ClaimExpirationEvent;
+import me.ryanhamshire.GriefPrevention.events.ClaimModifiedEvent;
+import me.ryanhamshire.GriefPrevention.events.ClaimCreatedEvent;
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.bukkit.event.EventPriority;
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.Collections;
import java.util.List;
import java.util.Map;
@IntegrationStage(loadStage = IntegrateStage.onEnableAfter)
public class GriefPreventionIntegration extends QSIntegratedPlugin {
+
final GriefPrevention griefPrevention = GriefPrevention.instance;
- private final List createLimits = new ArrayList<>(3);
- private final List tradeLimits = new ArrayList<>(3);
+
private final boolean whiteList;
- private final boolean deleteOnUntrusted;
+
+ private final boolean deleteOnClaimTrustChanged;
+
+ private final boolean deleteOnClaimUnclaimed;
+
+ private final boolean deleteOnClaimExpired;
+
+ private final boolean deleteOnClaimResized;
+
+ private final boolean deleteOnSubClaimCreated;
+
+ private final Flag createLimit;
+
+ private final List tradeLimits = new ArrayList<>(3);
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")));
+ this.deleteOnClaimTrustChanged = configurationSection.getBoolean("integration.griefprevention.delete-on-claim-trust-changed");
+ this.deleteOnClaimUnclaimed = configurationSection.getBoolean("integration.griefprevention.delete-on-claim-unclaimed");
+ this.deleteOnClaimExpired = configurationSection.getBoolean("integration.griefprevention.delete-on-claim-expired");
+ this.deleteOnClaimResized = configurationSection.getBoolean("integration.griefprevention.delete-on-claim-resized");
+ this.deleteOnSubClaimCreated = configurationSection.getBoolean("integration.griefprevention.delete-on-subclaim-created");
+ this.createLimit = Flag.getFlag(configurationSection.getString("integration.griefprevention.create"));
+ this.tradeLimits.addAll(toFlags(configurationSection.getStringList("integration.griefprevention.trade")));
+ }
+
+ @Override
+ public @NotNull String getName() {
+ return "GriefPrevention";
+ }
+
+ @Override
+ public void load() {
+ registerListener();
+ }
+
+ @Override
+ public void unload() {
+ unregisterListener();
+ }
+
+ @Override
+ public boolean canCreateShopHere(@NotNull Player player, @NotNull Location location) {
+ return checkPermission(player, location, Collections.singletonList(createLimit));
+ }
+
+ @Override
+ public boolean canTradeShopHere(@NotNull Player player, @NotNull Location location) {
+ return checkPermission(player, location, tradeLimits);
+ }
+
+ // We will check if the shop belongs to user whose permissions were changed.
+ // It will remove a shop if the shop owner no longer has permission to build a shop there.
+ // We will not delete the shops of the claim owner.
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onClaimTrustChanged(TrustChangedEvent event) {
+ if (!deleteOnClaimTrustChanged) {
+ return;
+ }
+ if (event.isGiven() && event.getClaimPermission() == null) {
+ return;
+ }
+ if (createLimit.toClaimPermission().isGrantedBy(event.getClaimPermission())) {
+ return;
+ }
+ for (Claim claim : event.getClaims()) {
+ if (claim.parent != null) {
+ handleClaimTrustChanged(claim.parent, event);
+ } else {
+ handleClaimTrustChanged(claim, event);
+ }
+ }
+ }
+
+ // Player can unclaim the main claim or the subclaim.
+ // So we need to call either the handleMainClaimUnclaimedOrExpired or the handleSubClaimUnclaimed method.
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onClaimUnclaimed(ClaimDeletedEvent event) {
+ if (!deleteOnClaimUnclaimed) {
+ return;
+ }
+ if (event.getClaim().parent == null) {
+ handleMainClaimUnclaimedOrExpired(event.getClaim(), "[SHOP DELETE] GP Integration: Single delete (Claim Unclaimed) #");
+ } else {
+ handleSubClaimUnclaimed(event.getClaim());
+ }
+ }
+
+ // Since only the main claim expires, we will call the handleMainClaimUnclaimedOrExpired method.
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onClaimExpired(ClaimExpirationEvent event) {
+ if (!deleteOnClaimExpired) {
+ return;
+ }
+ handleMainClaimUnclaimedOrExpired(event.getClaim(),"[SHOP DELETE] GP Integration: Single delete (Claim Expired) #");
+ }
+
+ // Player can resize the main claim or the subclaim.
+ // So we need to call either the handleMainClaimResized or the handleSubClaimResized method.
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onClaimResized(ClaimModifiedEvent event) {
+ if (!deleteOnClaimResized) {
+ return;
+ }
+ Claim oldClaim = event.getFrom();
+ Claim newClaim = event.getTo();
+ if (oldClaim.parent == null) {
+ handleMainClaimResized(oldClaim, newClaim);
+ } else {
+ handleSubClaimResized(oldClaim, newClaim);
+ }
+ }
+
+ // Player can create subclaims inside a claim.
+ // So if a subclaim is created that will contain, initially, shops from others players, then we will remove them.
+ // Because they won't have, initially, permission to create a shop in that subclaim.
+ @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
+ public void onSubClaimCreated(ClaimCreatedEvent event) {
+ if (!deleteOnSubClaimCreated) {
+ return;
+ }
+ if(event.getClaim().parent == null) {
+ return;
+ }
+ for (Chunk chunk : event.getClaim().getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops != null) {
+ for (Shop shop : shops.values()) {
+ if (!shop.getOwner().equals(event.getClaim().getOwnerID()) &&
+ event.getClaim().contains(shop.getLocation(), false, false)) {
+ plugin.log("[SHOP DELETE] GP Integration: Single delete (SubClaim Created) #" + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+ }
+ }
+
+ // Helper to the Claim Trust Changed Event Handler (to avoid duplicate code above)
+ private void handleClaimTrustChanged(Claim claim, TrustChangedEvent event) {
+ for (Chunk chunk : claim.getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops == null) {
+ continue;
+ }
+ for (Shop shop : shops.values()) {
+ if (shop.getOwner().equals(claim.getOwnerID())) {
+ continue;
+ }
+ if (event.getIdentifier().equals(shop.getOwner().toString())) {
+ plugin.log("[SHOP DELETE] GP Integration: Single delete (Claim/Subclaim Trust Changed) #" + shop.ownerName());
+ shop.delete();
+ } else if (event.getIdentifier().contains(shop.getOwner().toString())) {
+ plugin.log("[SHOP DELETE] GP Integration: Group delete (Claim/Subclaim Trust Changed)#" + shop.ownerName());
+ shop.delete();
+ } else if ("all".equals(event.getIdentifier()) || "public".equals(event.getIdentifier())) {
+ plugin.log("[SHOP DELETE] GP Integration: All/Public delete (Claim/Subclaim Trust Changed) #" + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+
+ }
+
+ // If it is the main claim, then we will delete all the shops that were inside of it.
+ private void handleMainClaimUnclaimedOrExpired(Claim claim, String logMessage) {
+ for (Chunk chunk : claim.getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops != null) {
+ for (Shop shop : shops.values()) {
+ if (claim.contains(shop.getLocation(), false, false)) {
+ plugin.log(logMessage + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+ }
+ }
+
+ // If it is a subclaim, then we will not remove the shops of the main claim owner.
+ // But we will remove all the others.
+ private void handleSubClaimUnclaimed(Claim subClaim) {
+ for (Chunk chunk : subClaim.getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops != null) {
+ for (Shop shop : shops.values()) {
+ if (!shop.getOwner().equals(subClaim.getOwnerID()) &&
+ subClaim.contains(shop.getLocation(), false, false)) {
+ plugin.log("[SHOP DELETE] GP Integration: Single delete (SubClaim Unclaimed) #" + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+ }
+ }
+
+ // If it is a main claim, then we will remove the shops if the main claim was resized (size was decreased).
+ // A shop will be removed if the old claim contains it but the new claim doesn't.
+ private void handleMainClaimResized(Claim oldClaim, Claim newClaim) {
+ for (Chunk chunk : oldClaim.getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops != null) {
+ for (Shop shop : shops.values()) {
+ if (oldClaim.contains(shop.getLocation(), false, false) &&
+ !newClaim.contains(shop.getLocation(), false, false)) {
+ plugin.log("[SHOP DELETE] GP Integration: Single delete (Claim Resized) #" + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+ }
+ }
+
+ // If it is a subclaim, then we will remove the shops in 2 situations.
+ // We will never remove the shops of the claim owner.
+ // We will remove a shop if the shop was inside the subclaim but now it is outside the subclaim.
+ // We will remove a shop if the shop was outside the subclaim but now it is inside the subclaim.
+ private void handleSubClaimResized(Claim oldClaim, Claim newClaim) {
+ handleSubClaimResizedHelper(oldClaim, newClaim);
+ handleSubClaimResizedHelper(newClaim, oldClaim);
+ }
+
+ private void handleSubClaimResizedHelper(Claim claimVerifyChunks, Claim claimVerifyShop) {
+ for (Chunk chunk : claimVerifyChunks.getChunks()) {
+ Map shops = plugin.getShopManager().getShops(chunk);
+ if (shops != null) {
+ for (Shop shop : shops.values()) {
+ if (!shop.getOwner().equals(claimVerifyChunks.getOwnerID()) &&
+ claimVerifyChunks.contains(shop.getLocation(), false, false) &&
+ !claimVerifyShop.contains(shop.getLocation(), false, false)) {
+ plugin.log("[SHOP DELETE] GP Integration: Single delete (SubClaim Resized) #" + shop.ownerName());
+ shop.delete();
+ }
+ }
+ }
+ }
+ }
+
+ private boolean checkPermission(@NotNull Player player, @NotNull Location location, List limits) {
+ if (!griefPrevention.claimsEnabledForWorld(location.getWorld())) {
+ return true;
+ }
+ Claim claim = griefPrevention.dataStore.getClaimAt(location, false, false, griefPrevention.dataStore.getPlayerData(player.getUniqueId()).lastClaim);
+ if (claim == null) {
+ return !whiteList;
+ }
+ for (Flag flag : limits) {
+ if (!flag.check(claim, player)) {
+ return false;
+ }
+ }
+ return true;
}
private List toFlags(List flags) {
@@ -66,116 +318,49 @@ public class GriefPreventionIntegration extends QSIntegratedPlugin {
return result;
}
- @Override
- public @NotNull String getName() {
- return "GriefPrevention";
- }
-
- @Override
- public boolean canCreateShopHere(@NotNull Player player, @NotNull Location location) {
- return checkPermission(player, location, createLimits);
-
- }
-
- @Override
- public boolean canTradeShopHere(@NotNull Player player, @NotNull Location location) {
- return checkPermission(player, location, tradeLimits);
- }
-
- private boolean checkPermission(@NotNull Player player, @NotNull Location location, List limits) {
- if (!griefPrevention.claimsEnabledForWorld(location.getWorld())) {
- return true;
- }
- Claim claim = griefPrevention.dataStore.getClaimAt(location, false, griefPrevention.dataStore.getPlayerData(player.getUniqueId()).lastClaim);
- if (claim == null) {
- return !whiteList;
- }
- for (Flag flag : limits) {
- if (!flag.check(claim, player)) {
- return false;
- }
- }
- 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 ("all".equals(event.getIdentifier()) || "public".equals(event.getIdentifier())) { //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 {
+
BUILD {
@Override
boolean check(Claim claim, Player player) {
return claim.allowBuild(player, Material.CHEST) == null;
}
- }, CONTAINER_ACCESS {
+ @Override
+ ClaimPermission toClaimPermission() {
+ return ClaimPermission.Build;
+ }
+ }, INVENTORY {
@Override
boolean check(Claim claim, Player player) {
return claim.allowContainers(player) == null;
}
+ @Override
+ ClaimPermission toClaimPermission() {
+ return ClaimPermission.Inventory;
+ }
}, ACCESS {
@Override
boolean check(Claim claim, Player player) {
return claim.allowAccess(player) == null;
}
+ @Override
+ ClaimPermission toClaimPermission() {
+ return ClaimPermission.Access;
+ }
};
+ abstract boolean check(Claim claim, Player player);
+
+ abstract ClaimPermission toClaimPermission();
+
public static Flag getFlag(String flag) {
- flag = flag.toUpperCase();
for (Flag value : Flag.values()) {
- if (value.name().equals(flag)) {
+ if (value.name().equalsIgnoreCase(flag)) {
return value;
}
}
return null;
}
-
- abstract boolean check(Claim claim, Player player);
}
+
}
diff --git a/src/main/java/org/maxgamer/quickshop/integration/towny/TownyIntegration.java b/src/main/java/org/maxgamer/quickshop/integration/towny/TownyIntegration.java
index 3630b962b..e30685a73 100644
--- a/src/main/java/org/maxgamer/quickshop/integration/towny/TownyIntegration.java
+++ b/src/main/java/org/maxgamer/quickshop/integration/towny/TownyIntegration.java
@@ -58,6 +58,7 @@ public class TownyIntegration extends QSIntegratedPlugin implements Listener {
private final boolean deleteShopOnLeave;
private final boolean deleteShopOnPlotClear;
private boolean isNewVersion;
+ private boolean whiteList;
public TownyIntegration(QuickShop plugin) {
@@ -67,6 +68,7 @@ public class TownyIntegration extends QSIntegratedPlugin implements Listener {
ignoreDisabledWorlds = plugin.getConfig().getBoolean("integration.towny.ignore-disabled-worlds");
deleteShopOnLeave = plugin.getConfig().getBoolean("integration.towny.delete-shop-on-resident-leave");
deleteShopOnPlotClear = plugin.getConfig().getBoolean("integration.towny.delete-shop-on-plot-clear");
+ whiteList = plugin.getConfig().getBoolean("integration.towny.whitelist-mode");
//Testing if there have new method
try {
Town.class.getDeclaredMethod("getHomeblockWorld");
@@ -185,6 +187,9 @@ public class TownyIntegration extends QSIntegratedPlugin implements Listener {
Util.debugLog("This world disabled Towny.");
return true;
}
+ if (!whiteList && !ShopPlotUtil.isShopPlot(location)) {
+ return true;
+ }
for (TownyFlags flag : flags) {
switch (flag) {
case OWN:
diff --git a/src/main/java/org/maxgamer/quickshop/listener/EconomySetupListener.java b/src/main/java/org/maxgamer/quickshop/listener/EconomySetupListener.java
new file mode 100644
index 000000000..0c78b2327
--- /dev/null
+++ b/src/main/java/org/maxgamer/quickshop/listener/EconomySetupListener.java
@@ -0,0 +1,37 @@
+/*
+ * This file is a part of project QuickShop, the name is EconomySetupListener.java
+ * Copyright (C) PotatoCraft Studio and contributors
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+package org.maxgamer.quickshop.listener;
+
+import org.bukkit.event.EventHandler;
+import org.bukkit.event.server.PluginEnableEvent;
+import org.maxgamer.quickshop.QuickShop;
+
+public class EconomySetupListener extends QSListener {
+ public EconomySetupListener(QuickShop plugin) {
+ super(plugin);
+ }
+
+ @EventHandler
+ public void onPluginEnable(PluginEnableEvent event) {
+ if (plugin.getEconomy() == null) {
+ plugin.loadEcon();
+ }
+ }
+}
diff --git a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java
index 8daa1e723..b9bdd12b6 100644
--- a/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java
+++ b/src/main/java/org/maxgamer/quickshop/shop/ContainerShop.java
@@ -165,11 +165,6 @@ public class ContainerShop implements Shop {
Util.ensureThread(false);
if (plugin.isDisplay()) {
switch (DisplayItem.getNowUsing()) {
- case UNKNOWN:
- Util.debugLog(
- "Failed to create a ContainerShop displayItem, the type is unknown, fallback to RealDisplayItem");
- this.displayItem = new RealDisplayItem(this);
- break;
case REALITEM:
this.displayItem = new RealDisplayItem(this);
break;
@@ -307,6 +302,7 @@ public class ContainerShop implements Shop {
return;
}
+ //FIXME: This may affect the performance
updateAttachedShop();
if (isLeftShop) {
@@ -710,28 +706,24 @@ public class ContainerShop implements Shop {
this.setSignText(getSignText());
}
+ private volatile boolean updating = false;
+
/**
- * Upates the shop into the database.
+ * Updates the shop into the database.
*/
@Override
- public synchronized void update() {
- Util.mainThreadRun(this::update0);
- }
-
- private void notifyDisplayItemChange() {
- isDisplayItemChanged = true;
- if (attachedShop != null && !attachedShop.isDisplayItemChanged) {
- attachedShop.notifyDisplayItemChange();
- }
- }
-
- private synchronized void update0() {
+ public void update() {
+ //TODO: check isDirty()
Util.ensureThread(false);
+ if (updating) {
+ return;
+ }
ShopUpdateEvent shopUpdateEvent = new ShopUpdateEvent(this);
if (Util.fireCancellableEvent(shopUpdateEvent)) {
Util.debugLog("The Shop update action was canceled by a plugin.");
return;
}
+ updating = true;
int x = this.getLocation().getBlockX();
int y = this.getLocation().getBlockY();
int z = this.getLocation().getBlockZ();
@@ -739,14 +731,23 @@ public class ContainerShop implements Shop {
int unlimited = this.isUnlimited() ? 1 : 0;
try {
plugin.getDatabaseHelper()
- .updateShop(ShopModerator.serialize(this.moderator.clone()), this.getItem(),
+ .updateShop(ShopModerator.serialize(this.moderator), this.getItem(),
unlimited, shopType.toID(), this.getPrice(), x, y, z, world,
this.saveExtraToYaml());
+ this.dirty = false;
} catch (Exception e) {
plugin.getLogger().log(Level.WARNING,
"Could not update a shop in the database! Changes will revert after a reboot!", e);
+ } finally {
+ updating = false;
+ }
+ }
+
+ private void notifyDisplayItemChange() {
+ isDisplayItemChanged = true;
+ if (attachedShop != null && !attachedShop.isDisplayItemChanged) {
+ attachedShop.notifyDisplayItemChange();
}
- this.dirty = false;
}
/**
@@ -835,24 +836,28 @@ public class ContainerShop implements Shop {
// check price restriction
PriceLimiter.CheckResult priceRestriction = plugin.getShopManager().getPriceLimiter().check(item, price);
+ boolean markUpdate = false;
if (priceRestriction.getStatus() != PriceLimiter.Status.PASS) {
if (priceRestriction.getStatus() == PriceLimiter.Status.NOT_A_WHOLE_NUMBER) {
setDirty();
price = Math.floor(price);
- this.update();
+ markUpdate = true;
} else if (priceRestriction.getStatus() == PriceLimiter.Status.NOT_VALID) {
setDirty();
price = priceRestriction.getMin();
- this.update();
+ markUpdate = true;
}
if (price < priceRestriction.getMin()) {
setDirty();
price = priceRestriction.getMin();
- this.update();
+ markUpdate = true;
} else if (price > priceRestriction.getMax()) {
setDirty();
price = priceRestriction.getMax();
- this.update();
+ markUpdate = true;
+ }
+ if (markUpdate) {
+ update();
}
}
checkDisplay();
@@ -1441,6 +1446,7 @@ public class ContainerShop implements Shop {
setExtra(plugin, section);
setDirty();
this.update();
+
}
@Override
diff --git a/src/main/java/org/maxgamer/quickshop/shop/RealDisplayItem.java b/src/main/java/org/maxgamer/quickshop/shop/RealDisplayItem.java
index 58dd304d7..0dcfb9ae4 100644
--- a/src/main/java/org/maxgamer/quickshop/shop/RealDisplayItem.java
+++ b/src/main/java/org/maxgamer/quickshop/shop/RealDisplayItem.java
@@ -35,6 +35,7 @@ import org.maxgamer.quickshop.util.MsgUtil;
import org.maxgamer.quickshop.util.Util;
import java.util.ArrayList;
+import java.util.List;
import java.util.Objects;
import java.util.UUID;
@@ -50,9 +51,7 @@ public class RealDisplayItem extends DisplayItem {
* @param shop The shop (See Shop)
*/
RealDisplayItem(@NotNull Shop shop) {
-
super(shop);
-
// this.displayLoc = shop.getLocation().clone().add(0.5, 1.2, 0.5);
}
@@ -115,9 +114,7 @@ public class RealDisplayItem extends DisplayItem {
if (shop.isLeftShop()) {
return;
}
- Util.debugLog(
- "Fixing moved Item displayItem " + eItem.getUniqueId() + " at " + eItem
- .getLocation());
+ Util.debugLog("Fixing moved Item displayItem " + eItem.getUniqueId() + " at " + eItem.getLocation());
PaperLib.teleportAsync(entity, Objects.requireNonNull(getDisplayLocation()), PlayerTeleportEvent.TeleportCause.UNKNOWN);
return;
}
@@ -134,8 +131,7 @@ public class RealDisplayItem extends DisplayItem {
public void remove() {
Util.ensureThread(false);
if (this.item == null) {
- Util.debugLog(
- "Ignore the Item removing because the Item is already gone or it's a left shop.");
+ Util.debugLog("Ignore the Item removing because the Item is already gone or it's a left shop.");
return;
}
this.item.remove();
@@ -159,7 +155,7 @@ public class RealDisplayItem extends DisplayItem {
boolean removed = false;
- ArrayList elist = new ArrayList<>(item.getNearbyEntities(1.5, 1.5, 1.5));
+ List elist = new ArrayList<>(item.getNearbyEntities(1.5, 1.5, 1.5));
if (shop.isRealDouble()) {
elist.addAll(item.getWorld()
.getNearbyEntities(Objects.requireNonNull(getDoubleShopDisplayLocations(true)), 1.5,
@@ -177,9 +173,7 @@ public class RealDisplayItem extends DisplayItem {
UUID displayUUID = this.item.getUniqueId();
if (!eItem.getUniqueId().equals(displayUUID)) {
if (DisplayItem.checkIsTargetShopDisplay(eItem.getItemStack(), this.shop)) {
- Util.debugLog(
- "Removing a duped ItemEntity " + eItem.getUniqueId() + " at " + eItem
- .getLocation());
+ Util.debugLog("Removing a duped ItemEntity " + eItem.getUniqueId() + " at " + eItem.getLocation());
entity.remove();
removed = true;
}
@@ -228,8 +222,7 @@ public class RealDisplayItem extends DisplayItem {
return;
}
if (shop.getLocation().getWorld() == null) {
- Util.debugLog(
- "Canceled the displayItem spawning because the location in the world is null.");
+ Util.debugLog("Canceled the displayItem spawning because the location in the world is null.");
return;
}
@@ -238,14 +231,12 @@ public class RealDisplayItem extends DisplayItem {
return;
}
if (item != null && item.isValid()) {
- Util.debugLog(
- "Warning: Spawning the Dropped Item for DisplayItem when there is already an existing Dropped Item, May cause a duplicated Dropped Item!");
+ Util.debugLog("Warning: Spawning the Dropped Item for DisplayItem when there is already an existing Dropped Item, May cause a duplicated Dropped Item!");
MsgUtil.debugStackTrace(Thread.currentThread().getStackTrace());
}
if (!Util.isDisplayAllowBlock(
Objects.requireNonNull(getDisplayLocation()).getBlock().getType())) {
- Util.debugLog(
- "Can't spawn the displayItem because there is not an AIR block above the shopblock.");
+ Util.debugLog("Can't spawn the displayItem because there is not an AIR block above the shopblock.");
return;
}
@@ -254,8 +245,7 @@ public class RealDisplayItem extends DisplayItem {
plugin.getServer().getPluginManager().callEvent(shopDisplayItemSpawnEvent);
if (shopDisplayItemSpawnEvent.isCancelled()) {
- Util.debugLog(
- "Canceled the displayItem spawning because a plugin setCancelled the spawning event, usually this is a QuickShop Add on");
+ Util.debugLog("Canceled the displayItem spawning because a plugin setCancelled the spawning event, usually this is a QuickShop Add on");
return;
}
this.guardedIstack = DisplayItem.createGuardItemStack(this.originalItemStack, this.shop);
diff --git a/src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java b/src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java
index 48024d26f..c3d35eed5 100644
--- a/src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java
+++ b/src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java
@@ -25,6 +25,7 @@ import com.google.gson.JsonSyntaxException;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.StringUtils;
+import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
@@ -60,7 +61,6 @@ public class ShopLoader {
private final List shopsInDatabase = new CopyOnWriteArrayList<>();
private final List shopRawDatabaseInfoList = new CopyOnWriteArrayList<>();
private int errors;
- private int totalLoaded = 0;
//private final WarningSender warningSender;
/**
@@ -84,11 +84,12 @@ public class ShopLoader {
*/
public void loadShops(@Nullable String worldName) {
//boolean backupedDatabaseInDeleteProcess = false;
- this.plugin.getLogger().info("Loading shops from the database...");
+ this.plugin.getLogger().info("Fetching shops from the database...If plugin stuck there, check your database connection.");
int loadAfterChunkLoaded = 0;
int loadAfterWorldLoaded = 0;
List pendingLoadShops = new ArrayList<>();
try (WarpedResultSet warpRS = plugin.getDatabaseHelper().selectAllShops(); ResultSet rs = warpRS.getResultSet()) {
+ this.plugin.getLogger().info("Loading shops from the database...");
while (rs.next()) {
ShopRawDatabaseInfo origin = new ShopRawDatabaseInfo(rs);
shopRawDatabaseInfoList.add(origin);
@@ -139,24 +140,28 @@ public class ShopLoader {
plugin.getShopManager().removeShop(shop); // Remove from Mem
//TODO: Only remove from memory, so if it actually is a bug, user won't lost all shops.
//TODO: Old shop will be deleted when in same location creating new shop.
- continue;
+ } else {
+ pendingLoadShops.add(shop);
}
- pendingLoadShops.add(shop);
} else {
loadAfterChunkLoaded++;
}
}
- for (Shop shop : pendingLoadShops) {
- shop.onLoad();
- shop.update();
- }
- this.plugin
- .getLogger()
- .info(
- "Successfully loaded "
- + totalLoaded
- + " shops!");
- this.plugin.getLogger().info(loadAfterChunkLoaded
+
+ Bukkit.getScheduler().runTaskLater(plugin, () -> {
+ this.plugin.getLogger().info("Loading the shops in worlds...");
+ for (Shop shop : pendingLoadShops) {
+ shop.onLoad();
+ shop.update();
+ }
+ this.plugin
+ .getLogger()
+ .info(
+ "Successfully loaded "
+ + pendingLoadShops.size()
+ + " shops!");
+ }, 1);
+ this.plugin.getLogger().info("Scheduled " + pendingLoadShops.size() + " shops to load in next tick, " + loadAfterChunkLoaded
+ " shops will load after chunk have loaded, "
+ loadAfterWorldLoaded
+ " shops will load after the world has loaded.");
@@ -165,7 +170,7 @@ public class ShopLoader {
}
}
- private void singleShopLoaded(@NotNull Timer singleShopLoadTimer) {
+ /* private void singleShopLoaded(@NotNull Timer singleShopLoadTimer) {
totalLoaded++;
long singleShopLoadTime = singleShopLoadTimer.stopAndGetTimePassed();
loadTimes.add(singleShopLoadTime);
@@ -178,7 +183,7 @@ public class ShopLoader {
private double calcTimeCost(@NotNull Timer timer) {
timeCostCache.putIfAbsent(timer, (double) timer.getPassedTime());
return timer.getPassedTime() - timeCostCache.get(timer);
- }
+ }*/
@SuppressWarnings("ConstantConditions")
private boolean shopNullCheck(@Nullable Shop shop) {
diff --git a/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java b/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java
index 8a50e4e00..b0fb911ec 100644
--- a/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java
+++ b/src/main/java/org/maxgamer/quickshop/shop/ShopManager.java
@@ -612,8 +612,11 @@ public class ShopManager {
public @NotNull List getShopsInWorld(@NotNull World world) {
final List worldShops = new ArrayList<>();
for (final Shop shop : getAllShops()) {
- if (Objects.equals(shop.getLocation().getWorld(), world)) {
- worldShops.add(shop);
+ Location location = shop.getLocation();
+ if (Util.isWorldLoaded(location)) {
+ if (Objects.equals(location.getWorld(), world)) {
+ worldShops.add(shop);
+ }
}
}
return worldShops;
diff --git a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java
index b5c6f4353..ae615d54b 100644
--- a/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java
+++ b/src/main/java/org/maxgamer/quickshop/shop/VirtualDisplayItem.java
@@ -33,7 +33,6 @@ import com.comphenix.protocol.wrappers.WrappedDataWatcher;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
-import org.bukkit.World;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
@@ -42,25 +41,29 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.maxgamer.quickshop.QuickShop;
import org.maxgamer.quickshop.event.ShopDisplayItemSpawnEvent;
-import org.maxgamer.quickshop.util.AsyncPacketSender;
import org.maxgamer.quickshop.util.GameVersion;
import org.maxgamer.quickshop.util.Util;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;
-import java.util.concurrent.ExecutionException;
+import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
public class VirtualDisplayItem extends DisplayItem {
-
-
- private static final ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
-
- //counter for ensuring ID is unique
private static final AtomicInteger counter = new AtomicInteger(0);
+ private static final GameVersion version = QuickShop.getInstance().getGameVersion();
+ private static final ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
+ private static PacketAdapter packetAdapter = null;
+ //cache chunk x and z
+ private ShopChunk chunkLocation;
- private static final GameVersion version = plugin.getGameVersion();
+ public VirtualDisplayItem(@NotNull Shop shop) throws RuntimeException {
+ super(shop);
+
+ VirtualDisplayItemManager.load();
+ }
//unique EntityID
private final int entityID = counter.decrementAndGet();
@@ -68,8 +71,6 @@ public class VirtualDisplayItem extends DisplayItem {
//The List which store packet sender
private final Set packetSenders = new ConcurrentSkipListSet<>();
- private volatile AsyncPacketSender.AsyncSendingTask asyncPacketSenderTask = null;
-
private volatile boolean isDisplay;
//If packet initialized
@@ -84,15 +85,23 @@ public class VirtualDisplayItem extends DisplayItem {
private PacketContainer fakeItemDestroyPacket;
- //packetListener
- private PacketAdapter packetAdapter;
-
- //cache chunk x and z
- private volatile ShopChunk chunkLocation;
-
-
- public VirtualDisplayItem(@NotNull Shop shop) throws RuntimeException {
- super(shop);
+ //Due to the delay task in ChunkListener
+ //We must move load task to first spawn to prevent some bug and make the check lesser
+ private void load() {
+ Util.ensureThread(false);
+ //some time shop can be loaded when world isn't loaded
+ Chunk chunk = shop.getLocation().getChunk();
+ chunkLocation = new ShopChunk(chunk.getWorld().getName(), chunk.getX(), chunk.getZ());
+ VirtualDisplayItemManager.put(chunkLocation, this);
+ if (Util.isLoaded(shop.getLocation())) {
+ //Let nearby player can saw fake item
+ Collection entityCollection = shop.getLocation().getWorld().getNearbyEntities(shop.getLocation(), plugin.getServer().getViewDistance() * 16, shop.getLocation().getWorld().getMaxHeight(), plugin.getServer().getViewDistance() * 16);
+ for (Entity entity : entityCollection) {
+ if (entity instanceof Player) {
+ packetSenders.add(entity.getUniqueId());
+ }
+ }
+ }
}
private void initFakeDropItemPacket() {
@@ -130,9 +139,11 @@ public class VirtualDisplayItem extends DisplayItem {
@Override
public void remove() {
- sendPacketToAll(fakeItemDestroyPacket);
- unload();
- isDisplay = false;
+ if (isDisplay) {
+ sendPacketToAll(fakeItemDestroyPacket);
+ unload();
+ isDisplay = false;
+ }
}
private void sendPacketToAll(@NotNull PacketContainer packet) {
@@ -181,14 +192,7 @@ public class VirtualDisplayItem extends DisplayItem {
@Override
public void spawn() {
Util.ensureThread(false);
- if (shop.isLeftShop()) {
- return;
- }
- //lazy initialize
- if (!initialized) {
- initFakeDropItemPacket();
- }
- if (shop.isDeleted() || !shop.isLoaded()) {
+ if (shop.isLeftShop() || isDisplay || shop.isDeleted() || !shop.isLoaded()) {
return;
}
ShopDisplayItemSpawnEvent shopDisplayItemSpawnEvent = new ShopDisplayItemSpawnEvent(shop, originalItemStack, DisplayType.VIRTUALITEM);
@@ -198,6 +202,12 @@ public class VirtualDisplayItem extends DisplayItem {
"Canceled the displayItem spawning because a plugin setCancelled the spawning event, usually this is a QuickShop Add on");
return;
}
+
+ //lazy initialize
+ if (!initialized) {
+ initFakeDropItemPacket();
+ }
+
load();
// Can't rely on the attachedShop cache to be accurate
@@ -211,87 +221,85 @@ public class VirtualDisplayItem extends DisplayItem {
isDisplay = true;
}
- //Due to the delay task in ChunkListener
- //We must move load task to first spawn to prevent some bug and make the check lesser
- private void load() {
- Util.ensureThread(false);
- //some time shop can be loaded when world isn't loaded
- if (Util.isLoaded(shop.getLocation())) {
- //Let nearby player can saw fake item
- Collection entityCollection = shop.getLocation().getWorld().getNearbyEntities(shop.getLocation(), plugin.getServer().getViewDistance() * 16, shop.getLocation().getWorld().getMaxHeight(), plugin.getServer().getViewDistance() * 16);
- for (Entity entity : entityCollection) {
- if (entity instanceof Player) {
- packetSenders.add(entity.getUniqueId());
- }
+ private void unload() {
+ packetSenders.clear();
+ VirtualDisplayItemManager.remove(chunkLocation, this);
+ }
+
+ public static class VirtualDisplayItemManager {
+ private static final AtomicBoolean loaded = new AtomicBoolean(false);
+ private static final Map> chunksMapping = new ConcurrentHashMap<>();
+
+ public static void put(@NotNull ShopChunk key, @NotNull VirtualDisplayItem value) {
+ //Thread-safe was ensured by ONLY USE Map method to do something
+ List virtualDisplayItems = new ArrayList<>(Collections.singletonList(value));
+ chunksMapping.merge(key, virtualDisplayItems, (mapOldVal, mapNewVal) -> {
+ mapOldVal.addAll(mapNewVal);
+ return mapOldVal;
+ });
+ }
+
+ public static void remove(@NotNull ShopChunk key, @NotNull VirtualDisplayItem value) {
+ chunksMapping.computeIfPresent(key, (mapOldKey, mapOldVal) -> {
+ mapOldVal.remove(value);
+ return mapOldVal;
+ });
+ }
+
+ public static void load() {
+ if (loaded.get()) {
+ return;
+ }
+ Util.debugLog("Loading VirtualDisplayItem chunks mapping manager...");
+ if (packetAdapter == null) {
+ packetAdapter = new PacketAdapter(plugin, ListenerPriority.HIGH, PacketType.Play.Server.MAP_CHUNK) {
+ @Override
+ public void onPacketSending(@NotNull PacketEvent event) {
+ //is really full chunk data
+ //In 1.17, this value was removed, so read safely
+ Boolean boxedIsFull = event.getPacket().getBooleans().readSafely(0);
+ boolean isFull = boxedIsFull == null || boxedIsFull;
+ if (!isFull) {
+ return;
+ }
+ Player player = event.getPlayer();
+ if (player instanceof TemporaryPlayer) {
+ return;
+ }
+ if (player == null || !player.isOnline()) {
+ return;
+ }
+ StructureModifier integerStructureModifier = event.getPacket().getIntegers();
+ //chunk x
+ int x = integerStructureModifier.read(0);
+ //chunk z
+ int z = integerStructureModifier.read(1);
+
+ chunksMapping.computeIfPresent(new ShopChunk(player.getWorld().getName(), x, z), (chunkLocation, targetList) -> {
+ for (VirtualDisplayItem target : targetList) {
+ if (!target.shop.isLoaded() || !target.isDisplay || target.shop.isLeftShop()) {
+ continue;
+ }
+ target.packetSenders.add(player.getUniqueId());
+ target.sendFakeItem(player);
+ }
+ return targetList;
+ });
+ }
+ };
+ Util.debugLog("Registering the packet listener...");
+ protocolManager.addPacketListener(packetAdapter);
+ loaded.set(true);
}
}
- if (asyncPacketSenderTask != null) {
- asyncPacketSenderTask.stop();
- //Prevent memory leak
- asyncPacketSenderTask = null;
- }
- asyncPacketSenderTask = AsyncPacketSender.create();
- asyncPacketSenderTask.start(plugin);
-
- if (packetAdapter == null) {
- packetAdapter = new PacketAdapter(plugin, ListenerPriority.HIGH, PacketType.Play.Server.MAP_CHUNK) {
- @Override
- public void onPacketSending(@NotNull PacketEvent event) {
- //is really full chunk data
- //In 1.17, this value was removed, so read safely
- Boolean boxedIsFull = event.getPacket().getBooleans().readSafely(0);
- boolean isFull = boxedIsFull == null || boxedIsFull;
- if (!shop.isLoaded() || !isDisplay || !isFull || shop.isLeftShop()) {
- return;
- }
- Player player = event.getPlayer();
- if (player instanceof TemporaryPlayer) {
- return;
- }
- if (player == null || !player.isOnline()) {
- return;
- }
-
- StructureModifier integerStructureModifier = event.getPacket().getIntegers();
- //chunk x
- int x = integerStructureModifier.read(0);
- //chunk z
- int z = integerStructureModifier.read(1);
- asyncPacketSenderTask.offer(() -> {
- if (chunkLocation == null) {
- World world = shop.getLocation().getWorld();
- Chunk chunk;
- try {
- //sync getting chunk
- chunk = plugin.getServer().getScheduler().callSyncMethod(plugin, () -> shop.getLocation().getChunk()).get();
- } catch (InterruptedException | ExecutionException e) {
- throw new RuntimeException("An error occurred when getting chunk from the world", e);
- }
- chunkLocation = new ShopChunk(world.getName(), chunk.getX(), chunk.getZ());
- }
- if (chunkLocation.isSame(player.getWorld().getName(), x, z)) {
- packetSenders.add(player.getUniqueId());
- sendFakeItem(player);
- }
- });
- }
- };
- }
- protocolManager.addPacketListener(packetAdapter);
- }
-
- private void unload() {
- packetSenders.clear();
- if (packetAdapter != null) {
- protocolManager.removePacketListener(packetAdapter);
- //Prevent memory leak
- packetAdapter = null;
- }
- if (asyncPacketSenderTask != null) {
- asyncPacketSenderTask.stop();
- //Prevent memory leak
- asyncPacketSenderTask = null;
+ public static void unload() {
+ Util.debugLog("Unloading VirtualDisplayItem chunks mapping manager...");
+ if (loaded.get()) {
+ Util.debugLog("Unregistering the packet listener...");
+ protocolManager.removePacketListener(packetAdapter);
+ loaded.set(false);
+ }
}
}
diff --git a/src/main/java/org/maxgamer/quickshop/util/AsyncPacketSender.java b/src/main/java/org/maxgamer/quickshop/util/AsyncPacketSender.java
deleted file mode 100644
index 68f76aac2..000000000
--- a/src/main/java/org/maxgamer/quickshop/util/AsyncPacketSender.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * This file is a part of project QuickShop, the name is AsyncPacketSender.java
- * Copyright (C) PotatoCraft Studio and contributors
- *
- * This program is free software: you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- *
- */
-package org.maxgamer.quickshop.util;
-
-import org.bukkit.scheduler.BukkitTask;
-import org.maxgamer.quickshop.QuickShop;
-
-import java.util.Queue;
-import java.util.concurrent.ArrayBlockingQueue;
-import java.util.concurrent.atomic.AtomicBoolean;
-
-/**
- * Async packet sender used for VirtualDisplayItem
- *
- * @author sandtechnology
- */
-public class AsyncPacketSender {
-
- private volatile static AsyncSendingTask instance = null;
- private static boolean isUsingGlobal = false;
- private static volatile boolean enabled = false;
-
- private AsyncPacketSender() {
- }
-
- public synchronized static void start(QuickShop plugin) {
- isUsingGlobal = plugin.getConfig().getBoolean("use-global-virtual-item-queue");
- if (isUsingGlobal) {
- createAndCancelExistingTask(plugin);
- }
- enabled = true;
- }
-
- private synchronized static void createAndCancelExistingTask(QuickShop plugin) {
- if (instance != null) {
- instance.stop();
- }
- instance = new AsyncSendingTask();
- instance.start(plugin);
- }
-
- public static AsyncSendingTask create() {
- if (!enabled) {
- throw new IllegalStateException("Please start AsyncPacketSender first!");
- }
- if (isUsingGlobal) {
- return instance;
- } else {
- return new AsyncSendingTask();
- }
- }
-
- public synchronized static void stop() {
- if (isUsingGlobal) {
- instance.stop();
- }
- }
-
- public static class AsyncSendingTask {
- private final Queue asyncPacketSendQueue = new ArrayBlockingQueue<>(100, true);
- private final AtomicBoolean taskDone = new AtomicBoolean(true);
- private volatile BukkitTask asyncSendingTask;
-
- public synchronized void start(QuickShop plugin) {
- //lazy initialize
- if (asyncSendingTask == null || asyncSendingTask.isCancelled()) {
- asyncSendingTask = plugin.getServer().getScheduler().runTaskTimerAsynchronously(plugin, () -> {
- if (asyncSendingTask.isCancelled()) {
- return;
- }
- if (!taskDone.get()) {
- return;
- }
- taskDone.set(false);
- Runnable nextTask = asyncPacketSendQueue.poll();
- while (nextTask != null) {
- nextTask.run();
- nextTask = asyncPacketSendQueue.poll();
- }
- taskDone.set(true);
- }, 0, 1);
- }
-
- }
-
-
- public synchronized void stop() {
- if (asyncSendingTask != null && !asyncSendingTask.isCancelled()) {
- asyncSendingTask.cancel();
- }
- asyncPacketSendQueue.clear();
- }
-
- public void offer(Runnable runnable) {
- asyncPacketSendQueue.offer(runnable);
- }
- }
-}
diff --git a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java
index 98fbe919d..8f34e30ae 100644
--- a/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java
+++ b/src/main/java/org/maxgamer/quickshop/util/MsgUtil.java
@@ -68,7 +68,7 @@ public class MsgUtil {
private static final String invaildMsg = "Invaild message";
private static final Map> outGoingPlayerMessages = Maps.newConcurrentMap();
- private static final DecimalFormat decimalFormat = processFormat();
+ private static DecimalFormat decimalFormat;
public static GameLanguage gameLanguage;
private static QuickShop plugin = QuickShop.getInstance();
@Getter
@@ -82,15 +82,6 @@ public class MsgUtil {
private static JsonConfiguration builtInLang;
private static JsonConfiguration builtInOriginalLang;
- private static DecimalFormat processFormat() {
- try {
- return new DecimalFormat(Objects.requireNonNull(QuickShop.getInstance().getConfig().getString("decimal-format")));
- } catch (Exception e) {
- QuickShop.getInstance().getLogger().log(Level.WARNING, "Error when processing decimal format, using system default: " + e.getMessage());
- return new DecimalFormat();
- }
- }
-
/**
* Deletes any messages that are older than a week in the database, to save on space.
*/
@@ -332,7 +323,7 @@ public class MsgUtil {
updateMessages(messagei18n.getInt("language-version"));
//Update colors
- messagei18n.loadFromString(Util.parseColours(messagei18n.saveToString()));
+ Util.parseColours(messagei18n);
/* Print to console this language file's author, contributors, and region*/
if (!inited) {
plugin.getLogger().info(getMessage("translation-author", null));
@@ -770,6 +761,16 @@ public class MsgUtil {
}
public static String decimalFormat(double value) {
+ if (decimalFormat == null) {
+ //lazy initialize
+ try {
+ String format = plugin.getConfig().getString("decimal-format");
+ decimalFormat = format == null ? new DecimalFormat() : new DecimalFormat(format);
+ } catch (Exception e) {
+ QuickShop.getInstance().getLogger().log(Level.WARNING, "Error when processing decimal format, using system default: " + e.getMessage());
+ decimalFormat = new DecimalFormat();
+ }
+ }
return decimalFormat.format(value);
}
@@ -1476,6 +1477,12 @@ public class MsgUtil {
setAndUpdate("not-a-integer");
setAndUpdate("language-version", ++selectedVersion);
}
+ if (selectedVersion == 58) {
+ setAndUpdate("command.format");
+ setAndUpdate("command.format-disabled");
+ setAndUpdate("language-version", ++selectedVersion);
+ }
+
setAndUpdate("_comment", "Please edit this file after format with json formatter");
}
diff --git a/src/main/java/org/maxgamer/quickshop/util/Util.java b/src/main/java/org/maxgamer/quickshop/util/Util.java
index f451b9d76..65297506c 100644
--- a/src/main/java/org/maxgamer/quickshop/util/Util.java
+++ b/src/main/java/org/maxgamer/quickshop/util/Util.java
@@ -19,10 +19,14 @@
package org.maxgamer.quickshop.util;
+import de.themoep.minedown.MineDown;
+import de.themoep.minedown.MineDownParser;
import io.papermc.lib.PaperLib;
import lombok.Getter;
import lombok.NonNull;
import lombok.SneakyThrows;
+import net.md_5.bungee.api.ChatColor;
+import net.md_5.bungee.api.chat.BaseComponent;
import org.apache.commons.lang.StringUtils;
import org.bukkit.*;
import org.bukkit.block.Block;
@@ -31,6 +35,7 @@ import org.bukkit.block.BlockState;
import org.bukkit.block.EnderChest;
import org.bukkit.block.data.BlockData;
import org.bukkit.block.data.Directional;
+import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.enchantments.Enchantment;
@@ -841,6 +846,10 @@ public class Util {
}
public static boolean isAir(@NotNull Material mat) {
+ try {
+ return isAir0(mat); // For newer versions, we had better use Bukkit API
+ } catch (Exception ignored) {
+ }
if (mat == Material.AIR) {
return true;
}
@@ -858,6 +867,11 @@ public class Util {
return false;
}
+ @SuppressWarnings("RedundantThrows")
+ private static boolean isAir0(@NotNull Material mat) throws Exception {
+ return mat.isAir();
+ }
+
/**
* Check a material is or not a WALL_SIGN
*
@@ -1045,12 +1059,14 @@ public class Util {
return list2.containsAll(list1);
}
+ private static final ThreadLocal mineDown = ThreadLocal.withInitial(() -> new MineDown(""));
+
/**
* Parse colors for the YamlConfiguration.
*
* @param config yaml config
*/
- public static void parseColours(@NotNull YamlConfiguration config) {
+ public static void parseColours(@NotNull ConfigurationSection config) {
Set keys = config.getKeys(true);
for (String key : keys) {
String filtered = config.getString(key);
@@ -1076,8 +1092,20 @@ public class Util {
if (StringUtils.isEmpty(text)) {
return "";
}
- text = ChatColor.translateAlternateColorCodes('&', text);
- return text;
+ MineDownParser parser = mineDown.get().parser();
+ parser.reset();
+ StringBuilder builder = new StringBuilder();
+ BaseComponent[] components = parser.enable(MineDownParser.Option.LEGACY_COLORS).parse(text).create();
+ for (BaseComponent component : components) {
+ ChatColor color = component.getColorRaw();
+ String legacyText = component.toLegacyText();
+ if (color == null && legacyText.startsWith("§f")) {
+ //Remove redundant §f added by toLegacyText
+ legacyText = legacyText.substring(2);
+ }
+ builder.append(legacyText);
+ }
+ return builder.toString();
}
/**
diff --git a/src/main/java/org/maxgamer/quickshop/util/language/game/MojangGameLanguageImpl.java b/src/main/java/org/maxgamer/quickshop/util/language/game/MojangGameLanguageImpl.java
index 65d0058d7..1f3965635 100644
--- a/src/main/java/org/maxgamer/quickshop/util/language/game/MojangGameLanguageImpl.java
+++ b/src/main/java/org/maxgamer/quickshop/util/language/game/MojangGameLanguageImpl.java
@@ -83,7 +83,10 @@ public class MojangGameLanguageImpl extends BukkitGameLanguageImpl implements Ga
} else {
if (isCountryEmpty || isLanguageEmpty) {
languageCode = isLanguageEmpty ? country + '_' + country : language + '_' + language;
- plugin.getLogger().warning("Unable to get language code, guessing" + languageCode + " instead, If it's incorrect, please change game-language option in config.yml.");
+ if (languageCode.equals("en_en")) {
+ languageCode = "en_US";
+ }
+ plugin.getLogger().warning("Unable to get language code, guessing " + languageCode + " instead, If it's incorrect, please change game-language option in config.yml.");
} else {
languageCode = language + '_' + country;
}
@@ -224,7 +227,7 @@ public class MojangGameLanguageImpl extends BukkitGameLanguageImpl implements Ga
YamlConfiguration yamlConfiguration = new YamlConfiguration();
yamlConfiguration.load(cacheFile);
/* The cache data, if it all matches, we doesn't need connect to internet to download files again. */
- //String cacheVersion = yamlConfiguration.getString("ver");
+ String cacheVersion = yamlConfiguration.getString("ver", "ERROR");
String cacheSha1 = yamlConfiguration.getString("sha1", "ERROR");
String cacheCode = yamlConfiguration.getString("lang");
/* If language name is default, use computer language */
@@ -235,13 +238,17 @@ public class MojangGameLanguageImpl extends BukkitGameLanguageImpl implements Ga
File cachedFile = new File(Util.getCacheFolder(), cacheSha1);
if (languageCode.equals(cacheCode)) { //Language same
if (cachedFile.exists()) { //File exists
- if (DigestUtils.sha1Hex(new FileInputStream(cachedFile)).equals(cacheSha1)) { //Check if file broken
- isLatest = true;
- try (FileReader reader = new FileReader(cachedFile)) {
- lang = new JsonParser().parse(reader).getAsJsonObject();
- return; //We doesn't need to update it
- } catch (Exception e) {
- //Keep it empty so continue to update files
+ try (FileInputStream cacheFileInputSteam = new FileInputStream(cachedFile)) {
+ if (DigestUtils.sha1Hex(cacheFileInputSteam).equals(cacheSha1)) { //Check if file broken
+ if (cacheVersion.equals(ReflectFactory.getServerVersion())) {
+ isLatest = true;
+ try (FileReader reader = new FileReader(cachedFile)) {
+ lang = new JsonParser().parse(reader).getAsJsonObject();
+ return; //We doesn't need to update it
+ } catch (Exception e) {
+ //Keep it empty so continue to update files
+ }
+ }
}
}
}
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 a143ad8b0..9bbbd8215 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
@@ -372,7 +372,7 @@ public class RollbarErrorReporter {
return true;
}
if (possiblyLevel == PossiblyLevel.MAYBE) {
- plugin.getLogger().warning("This seems not a QuickShop. If you have any question, you should ask QuickShop developer.");
+ plugin.getLogger().warning("This seems not a QuickShop error. If you have any question, you should ask QuickShop developer.");
return true;
}
return false;
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index fe6fcf9e3..af73e4f2b 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -22,7 +22,7 @@
# TO EDIT QUICKSHOP'S CONFIGURATION, USE THE "config.yml" FILE!
#Do not touch this if you don't know what you're doing!
-config-version: 133
+config-version: 139
#Select the language you want to use, (e.g de), use only supported language codes from the list below.
#If you use a not existant/not supported language, then QuickShop will use en_US.
@@ -289,13 +289,6 @@ shop:
#2=Virtual Item (Requires ProtocolLib, fallback to type 0 if ProtocolLib is not installed)
display-type: 2
- #Should QS use global virtual item queue?
- #Virtual item displays need to send fake packets,
- #which will create a task for each shop.
- #Having too many of those tasks can impact performance.
- #Turn this ONLY on when you think that the amount of tasks from the virtual item displays causes lag!
- use-global-virtual-item-queue: false
-
#Allow QuickShop to automatically despawn displays when no players are in range of the shop.
display-auto-despawn: false
@@ -607,6 +600,8 @@ integration:
trade: []
delete-shop-on-resident-leave: false
delete-shop-on-plot-clear: true
+ #Should we prevent the creation of a shop or trade with a shop outside Towny's area
+ whitelist-mode: true
#WorldGuard Integration
#CHANGES REQUIRE A SERVER RESTART!
#CHANGES REQUIRE A SERVER RESTART!
@@ -670,29 +665,44 @@ integration:
#GriefPrevention Integration
griefprevention:
enable: false
- #Should we prevent the creation of a shop or trade with a shop outside GriefPrevetion's area?
- whitelist-mode: false
- #Which checks does a player need to pass to create a shop?
- #You can use multiple checks at the same time.
- #Priority: UP > DOWN
- #
+ #Should we prevent the creation of a shop or trade with a shop outside GriefPrevention's area?
+ whitelist-mode: true
+ #Which check does a player need to pass to create a shop?
#Available fields:
#BUILD = The player must have the ability to build in the target claim.
- #CONTAINER_ACCESS = The player must be able to access containers.
+ #INVENTORY = The player must be able to access containers.
#ACCESS = The Player must have the ability to access the target claim.
- create:
- - CONTAINER_ACCESS
+ create: INVENTORY
#Which checks does a player need to pass to trade with a shop?
#You can use multiple checks at the same time.
#Priority: UP > DOWN
- #
#Available fields:
#BUILD = The player must have the ability to build in the target claim.
- #CONTAINER_ACCESS = The player must be able to access containers.
+ #INVENTORY = The player must be able to access containers.
#ACCESS = The Player must have the ability to access the target claim.
trade: [ ]
- #Should QuickShop delete shops if the shop owner has been untrusted on the claim?
- delete-on-untrusted: true
+ #Should QuickShop delete shops if the trust permission of the shop owner has been changed on the claim/subclaim?
+ #Removes a shop if the shop owner no longer has permission to build a shop there.
+ #Never removes a shop of the claim owner.
+ delete-on-claim-trust-changed: true
+ #Should QuickShop delete shops if the claim/subclaim has been unclaimed?
+ #Removes all the shops that were inside the claim/subclaim that was unclaimed.
+ #Never removes a shop of the claim owner when unclaiming a subclaim.
+ delete-on-claim-unclaimed: true
+ #Should QuickShop delete shops if the claim has been expired?
+ #Removes all the shops that were inside the claim.
+ delete-on-claim-expired: true
+ #Should QuickShop delete shops if claim/subclaim has been resized?
+ #Removes a shop that the old claim contains but the new claim doesn't.
+ #Removes a shop if the shop was inside the subclaim but now it is outside the subclaim.
+ #Removes a shop if the shop was outside the subclaim but now it is inside the subclaim.
+ #Never removes a shop of the claim owner when resizing a subclaim.
+ delete-on-claim-resized: true
+ #Should Quickshop delete shops if a subclaim has been created?
+ #If a subclaim is created that will contain, initially, shops from others players, then we will remove them.
+ #Because they won't have, initially, permission to create a shop in that subclaim.
+ #Never removes a shop of the claim owner.
+ delete-on-subclaim-created: true
#Residence Integration
residence:
enable: false
@@ -759,6 +769,9 @@ integration:
owner-create-only: false
#Delete shops when the shop owner got kicked/quited from the island.
delete-shop-on-member-leave: true
+ #AdvanvedRegionMarket shop deletion Integration
+ advancedregionmarket:
+ enable: false
#The protection that a shop should check.
protect:
explode: true
diff --git a/src/main/resources/lang-original/messages.json b/src/main/resources/lang-original/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang-original/messages.json
+++ b/src/main/resources/lang-original/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/af-ZA/messages.json b/src/main/resources/lang/af-ZA/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang/af-ZA/messages.json
+++ b/src/main/resources/lang/af-ZA/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/ar-SA/messages.json b/src/main/resources/lang/ar-SA/messages.json
index 4a159d6c3..bc3916e1a 100644
--- a/src/main/resources/lang/ar-SA/messages.json
+++ b/src/main/resources/lang/ar-SA/messages.json
@@ -5,7 +5,7 @@
"translation-version": "إصدار الدعم: إعادة التشكيل",
"translation-contributors": "المساهمون: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken و Andre_601",
"translation-country": "منطقة اللغة: العربية (ar_AR)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cلا يمكن العثور على QuickShop. تحتاج إلى النظر إلى واحد.",
"no-anythings-in-your-hand": "&cلا يوجد شيء في يديك.",
"no-permission": "لا تملك الصلاحيّات للقيام بذلك.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/ca-ES/messages.json b/src/main/resources/lang/ca-ES/messages.json
index d1f6533ea..ce9d27c27 100644
--- a/src/main/resources/lang/ca-ES/messages.json
+++ b/src/main/resources/lang/ca-ES/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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ò.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cNo pots vendre aquest objecte perquè està a la llista negra.",
"how-much-to-trade-for": "&aIntrodueix al xat per quant vols intercambiar &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aLa botiga ara és il·limitada.",
"limited": "&aLa butiga ara és limitada."
diff --git a/src/main/resources/lang/cs-CZ/messages.json b/src/main/resources/lang/cs-CZ/messages.json
index 84205c112..c8f490693 100644
--- a/src/main/resources/lang/cs-CZ/messages.json
+++ b/src/main/resources/lang/cs-CZ/messages.json
@@ -5,7 +5,7 @@
"translation-version": "Verze: Reremake",
"translation-contributors": "Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601",
"translation-country": "Jazyková Zóna: Czech (cs_CZ)",
- "language-version": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"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": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aObchod je nyní neomezený",
"limited": "&aObchod je nyní omezený"
diff --git a/src/main/resources/lang/da-DK/messages.json b/src/main/resources/lang/da-DK/messages.json
index 1b1d0c754..d0e0b61fd 100644
--- a/src/main/resources/lang/da-DK/messages.json
+++ b/src/main/resources/lang/da-DK/messages.json
@@ -1,11 +1,11 @@
{
- "_comment": "Hi translator! If you editing this from Github or from code sources, you should go https://crowdin.com/project/quickshop-reremake",
+ "_comment": "Hej oversætter! Hvis du redigerer dette fra Github eller fra kodekilder, bør du gå https://crowdin.com/project/quickshop-reremake",
"file-test": "This is a test textfile. We use it to test if the messages.json is broken. You can fill it with any easter eggs you like here :)",
"translation-author": "Oversættere: Ghost_chu, Andre_601, notashelf",
"translation-version": "Supportversion: Reremake",
"translation-contributors": "Bidragydere: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken og Andre_601",
"translation-country": "Sprogzone: dansk (da_DA)",
- "language-version": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/de-DE/messages.json b/src/main/resources/lang/de-DE/messages.json
index 9698e6092..7646c4a6f 100644
--- a/src/main/resources/lang/de-DE/messages.json
+++ b/src/main/resources/lang/de-DE/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cDu kannst dieses Item nicht verkaufen, da es auf der schwarzen Liste steht",
"how-much-to-trade-for": "&aGib im Chat ein, für wieviel du {1}x &e{0}&a handeln willst.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aDer Shop ist nun unlimitiert",
"limited": "&aDer Shop ist nun limitiert"
diff --git a/src/main/resources/lang/el-GR/messages.json b/src/main/resources/lang/el-GR/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang/el-GR/messages.json
+++ b/src/main/resources/lang/el-GR/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/en-US/messages.json b/src/main/resources/lang/en-US/messages.json
index 6dea2a985..cf76ab937 100644
--- a/src/main/resources/lang/en-US/messages.json
+++ b/src/main/resources/lang/en-US/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -34,7 +34,7 @@
"negative-amount": "&cYou can't trade negative amounts",
"not-a-number": "&cYou can only input a number, your input was {0}.",
"exceeded-maximum": "&cThe value exceeded the maximum value in Java.",
- "not-a-integer": "&cYou must input a integer, your input was {0}.",
+ "not-a-integer": "&cYou must input an Integer, your input was {0}.",
"player-bought-from-your-store": "&c{0} purchased {1} {2} from your shop, and you earned {3}.",
"shop-out-of-stock": "&5Your shop at {0}, {1}, {2} has run out of {3}!",
"shop-has-no-space": "&cThe shop only has room for {0} more {1}.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
@@ -323,5 +325,5 @@
"command-type-mismatch": "&cThis command can only be executed by &b{0}.",
"unlimited-shop-owner-changed": "&eThe unlimited Shop Owner has been changed to {0}.",
"unlimited-shop-owner-keeped": "&eAttention: The Shop Owner is still an unlimited Shop Owner, and you have to re-set the new Shop Owner by yourself.",
- "server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running."
+ "server-crash-warning": "&cThe Server may crash after executing the /qs reload command when you replace/delete the QuickShop plugin-jar file while the server is running."
}
diff --git a/src/main/resources/lang/es-ES/messages.json b/src/main/resources/lang/es-ES/messages.json
index 106224cc6..7738f4910 100644
--- a/src/main/resources/lang/es-ES/messages.json
+++ b/src/main/resources/lang/es-ES/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "\"file-test\": \"This is a test text file. We use it to test if the messages.json is broken. You can fill it with any easter-eggs you like here :)\",\n \"translation-author\": \"Translator: Ghost_chu, Andre_601\",\n \"translation-version\": \"Support Version: Reremake\",\n \"translation-contributors\": \"Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601\",\n \"translation-country\": \"Language Zone: English (en_US)\",\n \"language-version\": \"58\",\n \"not-looking-at-shop\": \"&cCould not find a QuickShop. You need to look at one.\",\n \"no-anythings-in-your-hand\": \"&cThere is nothing in your hand.\",\n \"no-permission\": \"&cYou do not have permission to do that.\",\n \"integrations-check-failed-create\": \"&cIntegration {0} denied the shop-creation\",\n \"integrations-check-failed-trade\": \"&cIntegration {0} denied the Shop trading\",\n \"3rd-plugin-build-check-failed\": \"&c3rd party plugin &l{0}&r&c denied the permission checks, did you have permission set up in there?\",\n \"no-creative-break\": \"&cYou cannot break other players shops in creative mode, switch to survival mode or try to use the supertool {0} instead.\",\n \"trading-in-creative-mode-is-disabled\": \"&cYou cannot trade with this shop while being in creative mode.\",\n \"supertool-is-disabled\": \"&cSupertool is disabled. Cannot break any shops.\",\n \"no-double-chests\": \"&cYou cannot create the double chest shop.\",\n \"not-managed-shop\": \"&cYou are not the owner or moderator of this Shop\",\n \"shop-already-owned\": \"&cThis is already a shop.\",\n \"chest-was-removed\": \"&cThe chest was removed.\",\n \"price-too-cheap\": \"&cPrice must be greater than &e${0}\",\n \"no-price-change\": \"&cThis wouldn't result in a price change!\",\n \"you-cant-afford-a-new-shop\": \"&cIt costs {0} to create a new shop.\",\n \"player-bought-from-your-store-tax\": \"&c{0} purchased {1} {2} from your shop, and you earned {3} ({4} in taxes).\",\n \"you-cant-afford-to-change-price\": \"&cIt costs {0} to change the price in your shop.\",\n \"success-created-shop\": \"&cShop created.\",\n \"success-removed-shop\": \"&aShop removed.\",\n \"shops-arent-locked\": \"&cRemember, shops are NOT protected from theft! If you want to stop thieves, lock it with LWC, Lockette, etc!\",\n \"shop-creation-cancelled\": \"&cShop creation cancelled.\",\n \"shop-purchase-cancelled\": \"&cShop purchase cancelled.\",\n \"shop-stock-too-low\": \"&cThe shop only has {0} {1} left!\",\n \"you-cant-afford-to-buy\": \"&cIt costs {0}, but you only have {1}\",\n \"negative-amount\": \"&cYou can't trade negative amounts\",\n \"not-a-number\": \"&cYou can only input a number, your input was {0}.\",\n \"exceeded-maximum\": \"&cThe value exceeded the maximum value in Java.\",\n \"not-a-integer\": \"&cYou must input a integer, your input was {0}.\",\n \"player-bought-from-your-store\": \"&c{0} purchased {1} {2} from your shop, and you earned {3}.\",\n \"shop-out-of-stock\": \"&5Your shop at {0}, {1}, {2} has run out of {3}!\",\n \"shop-has-no-space\": \"&cThe shop only has room for {0} more {1}.\",\n \"you-dont-have-that-many-items\": \"&cYou only have {0} {1}.\",\n \"the-owner-cant-afford-to-buy-from-you\": \"&cThis costs {0}, but the shop-owner only has {1}\",\n \"player-sold-to-your-store\": \"&a{0} sold {1} {2} to your shop.\",\n \"shop-out-of-space\": \"&5Your shop at {0}, {1}, {2} is now full.\",\n \"fee-charged-for-price-change\": \"&aYou paid &c{0}&a to change the price.\",\n \"price-is-now\": \"&aThe new price of the shop is &e{0}\",\n \"thats-not-a-number\": \"&cInvalid number\",\n \"forbidden-vanilla-behavior\": \"&cThe operation is forbidden due to it not being consisten with vanilla behaviour\",\n \"no-price-given\": \"&cPlease give a valid price.\",\n \"average-price-nearby\": \"&aNearby average price: &e{0}\",\n \"shop-has-changed\": \"&cThe shop you tried to use has changed since you clicked it!\",\n \"shop-not-exist\": \"&cThere is no shop.\",\n \"nearby-shop-this-way\": \"&aShop is {0} blocks away from you.\",\n \"nearby-shop-header\": \"&aNearby Shop matching &b{0}&a:\",\n \"nearby-shop-entry\": \"&a- Info:{0} &aPrice:&b{1} &ax:&b{2} &ay:&b{3} &az:&b{4} &adistance: &b{5} &ablock(s)\",\n \"no-nearby-shop\": \"&cNo nearby shop matching {0}.\",\n \"buying-more-than-selling\": \"&cWARNING: You are buying items for more than you are selling them!\",\n \"not-enough-space\": \"&cYou only have room for {0} more!\",\n \"refill-success\": \"&aRefill successful\",\n \"empty-success\": \"&aEmptying shop successful\",\n \"admin-shop\": \"AdminShop\",\n \"unknown-owner\": \"Unknown\",\n \"owner-bypass-check\": \"&eBypassed all checks. Trade successful! (You are now the shop owner!)\",\n \"reached-maximum-can-create\": \"&cYou already created a maximum of {0}/{1} shops!\",\n \"restricted-prices\": \"&cRestricted price for {0}: Min {1}, max {2}\",\n \"no-enough-money-to-keep-shops\": \"&cYou didn't have enough money to keep your shops! All shops have been removed...\",\n \"nothing-to-flush\": \"&aYou have no new shop messages.\",\n \"break-shop-use-supertool\": \"&eYou can break the shop by using the SuperTool.\",\n \"failed-to-put-sign\": \"&cNot enough space around the shop to place the info sign.\",\n \"failed-to-paste\": \"&cFailed to upload the data to Pastebin. Check your internet connection and try again. (See console for details)\",\n \"warn-to-paste\": \"&eCollecting data and uploading it to Pastebin, this may take a while. &c&lWarning:&c The data is kept public for one week! It may leak your server configuration and other sensitive information. Make sure you only send it to <rusted staff/developers.\",\n \"price-too-high\": \"&cThe shop price is too high! You cannot create one with a price higher than {0}.\",\n \"you-cant-create-shop-in-there\": \"&cYou don't have permission to create a shop at this location.\",\n \"unknown-player\": \"&cTarget player doesn't exist, please check the username you typed.\",\n \"shop-staff-cleared\": \"&aSuccessfully removed all staff members from your shop.\",\n \"shop-staff-added\": \"&aSuccessfully added {0} as a staff member for your shop.\",\n \"shop-staff-deleted\": \"&aSuccessfully removed {0} as a staff member for your shop.\",\n \"no-permission-build\": \"&cYou cannot build a shop here.\",\n \"success-change-owner-to-server\": \"&aSuccessfully set the shop owner to Server.\",\n \"flush-finished\": \"&aSuccessfully flushed the messages.\",\n \"purchase-failed\": \"&cPurchase failed: Internal Error. Please contact the Server Administrator.\",\n \"no-pending-action\": \"&cYou do not have any pending actions\",\n \"permission-denied-3rd-party\": \"&cPermission denied: 3rd Party Plugin [{0}].\",\n \"shops-removed-in-world\": \"&eTotal &b{0}&e shops has been deleted in world &b{1}&e.\",\n \"world-not-exists\": \"&cThe world &e{0}&c doesn't exist\",\n \"menu\": {\n \"successful-purchase\": \"&aSuccessfully purchased:\",\n \"successfully-sold\": \"&aSuccessfully sold:\",\n \"item-name-and-price\": \"&e{0} {1} &afor &e{2}\",\n \"sell-tax\": \"&aYou paid &e{0} &ain taxes.\",\n \"sell-tax-self\": \"&aYou didn't pay taxes because you own this shop.\",\n \"enchants\": \"&5Enchantments\",\n \"stored-enchants\": \"&5Stored Enchantments\",\n \"shop-information\": \"&aShop Information:\",\n \"owner\": \"&aOwner: {0}\",\n \"item\": \"&aItem: &e{0}\",\n \"item-holochat-error\": \"&c[Error]\",\n \"preview\": \"&b[Item Preview]\",\n \"space\": \"&aSpace: &e{0}\",\n \"stock\": \"&aStock &e{0}\",\n \"price-per\": \"&aPrice per &e{0} &a- &e{1}\",\n \"price-per-stack\": \"&aPrice per &e{2}x {0} - {1}\",\n \"total-value-of-chest\": \"&aTotal value of chest: &e{0}\",\n \"damage-percent-remaining\": \"&e{0}% &aremaining.\",\n \"this-shop-is-buying\": \"&aThis shop is &dBUYING&a items.\",\n \"this-shop-is-selling\": \"&aThis shop is &bSELLING&a items.\",\n \"shop-stack\": \"&aAmount of bulk: &e{0}\",\n \"effects\": \"&aEffects\"\n },\n \"bypassing-lock\": \"&cBypassing a QuickShop lock!\",\n \"that-is-locked\": \"&cThis shop is locked.\",\n \"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.\",\n \"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.\",\n \"not-allowed-to-create\": \"&cYou may not create a shop here.\",\n \"blacklisted-item\": \"&cYou cannot sell this item because it is on the blacklist\",\n \"how-much-to-trade-for\": \"&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.\",\n \"command\": {\n \"toggle-unlimited\": {\n \"unlimited\": \"&aShop is now unlimited\",\n \"limited\": \"&aShop is now limited\"\n },\n \"transfer-success\": \"&aTransferred &e{0} &ashop(s) to &e{1}\",\n \"transfer-success-other\": \"&aTransferred &e{0} {1}&a's shop(s) to &e{2}\",\n \"some-shops-removed\": \"&e{0} &ashop(s) removed\",\n \"no-owner-given\": \"&cNo owner provided\",\n \"new-owner\": \"&aNew owner: &e{0}\",\n \"now-buying\": \"&aNow &dBUYING &e{0}\",\n \"now-selling\": \"&aNow &bSELLING &e{0}\",\n \"cleaning\": \"&aRemoving shops without any stock...\",\n \"reloading\": \"&aReloading...\",\n \"cleaned\": \"&aRemoved &e{0}&a shops.\",\n \"no-type-given\": \"&cUsage: /qs find \",\n \"no-world-given\": \"&cPlease specify a world name\",\n \"bulk-size-not-set\": \"&cUsage: /qs size \",\n \"bulk-size-now\": \"&aNow trading &e{0}x {1}\",\n \"invalid-bulk-amount\": \"&cThe given value {0} is larger than max stack size or lower than one\",\n \"no-trade-item\": \"&aPlease hold a trade item to change in main hand\",\n \"trade-item-now\": \"&aNow trading &e{0}x {1}\",\n \"no-amount-given\": \"&cNo amount provided. Use &a/qs refill &c\",\n \"now-debuging\": \"&aSuccessfully enabled developer mode. Reloading QuickShop...\",\n \"now-nolonger-debuging\": \"&aSuccessfully disabled Developer mode. Reloading QuickShop...\",\n \"wrong-args\": \"&cInvalid argument. Use &l/qs help &cto see a list of commands.\",\n \"description\": {\n \"title\": \"&aQuickShop help\",\n \"unlimited\": \"&eGives a shop unlimited stock.\",\n \"setowner\": \"&eChanges the ownership of a shop.\",\n \"owner\": \"&eChanges the ownership of a shop.\",\n \"buy\": \"&eChanges a shop to &dBUY&e mode\",\n \"sell\": \"&eChanges a shop to &bSELL&e mode\",\n \"price\": \"&eChanges the buy/sell price of a shop\",\n \"clean\": \"&eRemoves all (loaded) shops without any stock\",\n \"find\": \"&eLocates the nearest shop of a specific type.\",\n \"reload\": \"&eReloads the config.yml of QuickShop\",\n \"refill\": \"&eAdds a given number of items to a shop\",\n \"empty\": \"&eRemoves all items from a shop\",\n \"debug\": \"&eEnables Developer mode\",\n \"create\": \"&eCreates a new shop from the targeted chest\",\n \"fetchmessage\": \"&eShow unread shop messages\",\n \"info\": \"&eShow QuickShop statistics\",\n \"paste\": \"&eUploads server data to Pastebin\",\n \"staff\": \"&eManage your shop staff\",\n \"remove\": \"&eRemoves the shop you're looking at\",\n \"amount\": \"&eTo set item amount (Useful when having chat issues)\",\n \"about\": \"&eShows QuickShop info\",\n \"help\": \"&eShows QuickShop help\",\n \"item\": \"&eChange shop item of a shop\",\n \"size\": \"&eChange per bulk amount of a shop\",\n \"supercreate\": \"&eCreate a shop while bypassing all protection checks\",\n \"language\": \"&eChange the currently used language\",\n \"removeall\": \"&eRemove ALL shops of a specified player\",\n \"transfer\": \"&eTransfer someone's ALL shops to other\",\n \"removeworld\": \"&eRemove ALL shops in a specified world\",\n \"currency\": \"&eSet or remove the currency setting of the shop\",\n \"ban\": \"&eBan a player from the shop\",\n \"unban\": \"&eUnban a player from the shop\",\n \"freeze\": \"&eDisable or Enable shop trading\",\n \"lock\": \"&eSwitch the shop's lock status\"\n },\n \"disabled\": \"&cThis command is disabled: &e{0}\",\n \"feature-not-enabled\": \"This feature is not enabled in the config file.\"\n },\n \"signs\": {\n \"selling\": \"Selling {0}\",\n \"stack-selling\": \"Selling {0}\",\n \"header\": \"{1}{0}\",\n \"buying\": \"Buying {0}\",\n \"stack-buying\": \"Buying {0}\",\n \"item\": \"{0}\",\n \"price\": \"{0} each\",\n \"stack-price\": \"{0} per {1}x {2}\",\n \"unlimited\": \"Unlimited\",\n \"status-available\": \"&a\",\n \"status-unavailable\": \"&c\",\n \"out-of-stock\": \"Out of Stock\",\n \"out-of-space\": \"Out of Space\",\n \"freeze\": \"Trading disabled\"\n },\n \"controlpanel\": {\n \"setowner\": \"&aOwner: &b{0} &e[&d&lChange&e]\",\n \"infomation\": \"&aShop Control panel:\",\n \"setowner-hover\": \"&eClick to switch owner.\",\n \"unlimited\": \"&aUnlimited: {0} &e[&d&lChange&e]\",\n \"unlimited-hover\": \"&eClick to toggle if the shop is unlimited.\",\n \"mode-selling\": \"&aShop mode: &bSelling &e[&d&lChange&e]\",\n \"mode-selling-hover\": \"&eClick to change the shop to BUY mode.\",\n \"mode-buying\": \"&aShop mode: &bBuying &e[&d&lChange&e]\",\n \"mode-buying-hover\": \"&eClick to change the shop to SELL mode.\",\n \"price\": \"&aPrice: &b{0} &e[&d&lChange&e]\",\n \"price-hover\": \"&eClick to set a new price for the item.\",\n \"refill\": \"&aRefill: Refill the items &e[&d&lOK&e]\",\n \"refill-hover\": \"&eClick to refill the shop.\",\n \"empty\": \"&aEmpty: Remove all items &e[&d&lOK&e]\",\n \"empty-hover\": \"&eClick to clear the inventory of the shop.\",\n \"remove\": \"&c&l[Remove Shop]\",\n \"remove-hover\": \"&eClick to remove this shop.\",\n \"stack\": \"&aPer bulk amount: &b{0} &e[&d&lChange&e]\",\n \"stack-hover\": \"&eClick to set the amount of item per bulk. Set to 1 for normal behaviour.\",\n \"item\": \"&aShop Item: {0} &e[&d&lChange&e]\",\n \"item-hover\": \"&eClick to change shop Item\",\n \"currency\": \"&aCurrency: &b{0} &e[&d&lSet&e]\",\n \"currency-hover\": \"&eClick to set or remove the currency that this shop is using\",\n \"lock\": \"&eShop lock: &b{0} &e[&d&lToggle&e]\",\n \"lock-hover\": \"&eEnable/Disable the shop's lock protection.\",\n \"freeze\": \"&eFreeze mode: &b{0} &e[&d&lToggle&e]\",\n \"freeze-hover\": \"&eToggle the shop's freeze status.\"\n },\n \"tableformat\": {\n \"full_line\": \"+---------------------------------------------------+\",\n \"left_half_line\": \"+--------------------\",\n \"right_half_line\": \"--------------------+\",\n \"left_begin\": \"| \"\n },\n \"booleanformat\": {\n \"success\": \"&a✔\",\n \"failed\": \"&c✘\"\n },\n \"tabcomplete\": {\n \"price\": \"[price]\",\n \"range\": \"[range]\",\n \"amount\": \"[amount]\",\n \"currency\": \"[currency name]\",\n \"item\": \"[item]\"\n },\n \"updatenotify\": {\n \"buttontitle\": \"[Update Now]\",\n \"onekeybuttontitle\": \"[OneKey Update]\",\n \"list\": [\n \"{0} was released. You are still using {1}!\",\n \"Boom! New update {0} incoming. Update!\",\n \"Surprise! {0} came out. You are on {1}\",\n \"Looks like you need to update. {0} was released!\",\n \"Ooops! {0} was now released. You are on {1}!\",\n \"I swear, QS has been updated to {0}. Why have you not updated yet?\",\n \"Fixing and re... Sorry, but {0} was released!\",\n \"Err! Nope. This is not an error. {0} has been released!\",\n \"OMG! {0} came out! Why are you still using {1}?\",\n \"Todays News: QuickShop has been updated to {0}!\",\n \"Plugin k.i.a. You should update to {0}!\",\n \"Update {0} ignited. Save update!\",\n \"There is an update available Commander. {0} has just came out!\",\n \"Look my style---{0} updated. You're still using {1}\",\n \"Ahhhhhhh! New update {0}! Update!\",\n \"What do you think? {0} has been released! Update!\",\n \"Doctor, QuickShop has a new update {0}! You should update~\",\n \"Ko~ko~da~yo~ QuickShop has a new update {0} ~\"\n ],\n \"remote-disable-warning\": \"&cThis version of QuickShop is marked as disabled by the remote server, which means this version may have serious problem, get details from our SpigotMC page: {0}. This warning will continue to appear until you switch to a stable version, but it will not affect your server's performance.\",\n \"label\": {\n \"unstable\": \"[Unstable]\",\n \"stable\": \"[Stable]\",\n \"lts\": \"[LTS]\",\n \"qualityverifyed\": \"[Quality]\",\n \"github\": \"[GitHub]\",\n \"spigotmc\": \"[SpigotMC]\",\n \"bukkitdev\": \"[BukkitDev]\",\n \"master\": \"[Master]\"\n }\n },\n \"shop-removed-cause-ongoing-fee\": \"&cYour shop at {0} was removed because you didn't have enough money to keep it!\",\n \"digits-reach-the-limit\": \"&cYou have reached the limits of decimals in the price.\",\n \"complete\": \"&aComplete!\",\n \"quickshop-gui-preview\": \"QuickShop GUI Item Preview\",\n \"shops-recovering\": \"Recovering shops from backup...\",\n \"shops-backingup\": \"Creating Shop-backup from database...\",\n \"saved-to-path\": \"The Backup was saved to {0}.\",\n \"backup-failed\": \"Cannot backup the database. Check the console for details.\",\n \"translate-not-completed-yet-click\": \"The translation of the language {0} was not completed yet by {1}. Do you want to help us improving the translation? Click here!\",\n \"translate-not-completed-yet-url\": \"The translation of the language {0} was not completed yet by {1}. Do you want to help us improving the translation? Browse: {2}\",\n \"language-info-panel\": {\n \"name\": \"Language: \",\n \"code\": \"Code: \",\n \"progress\": \"Progress: \",\n \"help\": \"Help us: \",\n \"translate-on-crowdin\": \"[Translate on Crowdin]\"\n },\n \"shop-now-freezed\": \"&aYou have frozen the shop. Nobody can trade with this shop now!\",\n \"shop-nolonger-freezed\": \"&aYou unfroze the shop. It's back to normal now!\",\n \"shop-cannot-trade-when-freezing\": \"&cYou cannot trade with this shop because it is frozen.\",\n \"shop-freezed-at-location\": \"&eYour shop {0} at {1} got frozen!\",\n \"denied-put-in-item\": \"&cYou cannot put this item into your shop!\",\n \"how-many-buy-stack\": \"&eEnter in chat, how many bulks you wish to &bBUY&a. There are &e{0}&a items in each bulk and you can buy &e{1}&a bulks. Enter &ball&a in chat to buy all.\",\n \"how-many-sell-stack\": \"&aEnter in chat, how many bulk you wish to &dSELL&a. There are &e{0}&a items per bulk and you have &e{1}&a bulks available. Enter &ball&a in chat to sell all.\",\n \"language\": {\n \"name\": \"&eName: &6{0}\",\n \"code\": \"&eCode: &6{0}\",\n \"translate-progress\": \"&eTranslation Progress: &b{0}%\",\n \"approval-progress\": \"&eApproval Progress: &b{0}%\",\n \"qa-issues\": \"&eQuality assurance issues: &b{0}%\",\n \"help-us\": \"&a[Help us improve the translation quality]\"\n },\n \"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.\",\n \"currency-set\": \"&aShop currency successfully set to {0}.\",\n \"currency-unset\": \"&aShop currency removed successfully. Using default settings now.\",\n \"currency-not-support\": \"&cThe economy plugin doesn't support the multi-economy feature.\",\n \"item-not-exist\": \"&cThe item &e{0} &cdoes not exist, please check your spelling.\",\n \"backup-success\": \"&aBackup successfull.\",\n \"console-only\": \"&cThis command can only be executed by Console.\",\n \"console-only-danger\": \"&cThis is a dangerous command, so that only the Console can execute it.\",\n \"clean-warning\": \"&eThis command will purge &call &eshops if the shop is damaged, was created in not allowed worlds, is selling/buying not allowed items or &c&lEXISTS IN A UNLOADED WORLD&e. Make sure to create a full backup of your shop data first and use &b/qs cleanghost confirm &eto continue.\",\n \"shop-creation-failed\": \"&cShop creation failed, please contact with server administrator.\",\n \"shop-owner-self-trade\": \"&eYou trade with your own shop, so you might not gain any balance.\",\n \"chest-title\": \"QuickShop Store\",\n \"command-type-mismatch\": \"&cThis command can only be executed by &b{0}.\",\n \"unlimited-shop-owner-changed\": \"&eThe unlimited Shop Owner has been changed to {0}.\",\n \"unlimited-shop-owner-keeped\": \"&eAttention: The Shop Owner is still an unlimited Shop Owner, and you have to re-set the new Shop Owner by yourself.\",\n \"server-crash-warning\": \"&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running.\"",
"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.",
@@ -34,7 +34,7 @@
"negative-amount": "&cNo puedes comerciar con valores negativos",
"not-a-number": "&cSolo puedes introducir un número, tu entrada era {0}.",
"exceeded-maximum": "&cEl valor excedió el valor máximo en Java.",
- "not-a-integer": "&cYou must input a integer, your input was {0}.",
+ "not-a-integer": "&cSolo puedes introducir un número, tu entrada era {0}.",
"player-bought-from-your-store": "&c{0} ha comprado {1} {2} en tu tienda, y has pagado {3} en impuestos.",
"shop-out-of-stock": "&5Tu tienda en {0}, {1}, {2} se ha quedado sin {3}!",
"shop-has-no-space": "&cLa tienda sólo tiene espacio para {0} más {1}.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cNo puedes vender esto porque está en la lista negra",
"how-much-to-trade-for": "&aIngresa en el chat, por cuánto deseas intercambiar &e{1}x {0}&a.",
"command": {
+ "format": "{\n \"break-shop-use-supertool\": \"§ePuede romper la tienda usando la SuperTool.\",\n \"fee-charged-for-price-change\": \"§aTu pagaste §c{0}§a para cambiar el precio.\",\n \"not-allowed-to-create\": \"§cNo puedes crear una tienda aquí.\",\n \"how-much-to-trade-for\": \"§aIngrese en el chat, cuánto desea intercambiar §e{1}x {0}§a for.\",\n \"shops-backingup\": \"Crear copia de seguridad de la tienda a partir de la base de datos...\",\n \"_comment\": \"Edite este archivo después del formato con el formateador json\",\n \"unlimited-shop-owner-changed\": \"§eEl dueño de la tienda ilimitado ha sido cambiado a {0}.\",\n \"thats-not-a-number\": \"§cNúmero invalido\",\n \"console-only-danger\": \"§cThis is a dangerous command, so that only the Console can execute it.\",\n \"not-a-number\": \"§cYou can only input a number, your input was {0}.\",\n \"shop-removed-cause-ongoing-fee\": \"§cYour shop at {0} was removed because you didn't have enough money to keep it!\",\n \"tabcomplete\": {\n \"amount\": \"[amount]\",\n \"item\": \"[item]\",\n \"price\": \"[price]\",\n \"range\": \"[range]\",\n \"currency\": \"[currency name]\"\n },\n \"blacklisted-item\": \"§cYou cannot sell this item because it is on the blacklist\",\n \"command-type-mismatch\": \"§cThis command can only be executed by §b{0}.\",\n \"server-crash-warning\": \"§cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running.\",\n \"you-cant-afford-to-change-price\": \"§cIt costs {0} to change the price in your shop.\",\n \"forbidden-vanilla-behavior\": \"§cThe operation is forbidden due to it not being consisten with vanilla behaviour\",\n \"average-price-nearby\": \"§aNearby average price: §e{0}\",\n \"digits-reach-the-limit\": \"§cYou have reached the limits of decimals in the price.\",\n \"currency-unset\": \"§aShop currency removed successfully. Using default settings now.\",\n \"you-cant-create-shop-in-there\": \"§cYou don't have permission to create a shop at this location.\",\n \"no-pending-action\": \"§cYou do not have any pending actions\",\n \"refill-success\": \"§aRefill successful\",\n \"failed-to-paste\": \"§cFailed to upload the data to Pastebin. Check your internet connection and try again. (See console for details)\",\n \"how-many-buy-stack\": \"§eEnter in chat, how many bulks you wish to §bBUY§a. There are §e{0}§a items in each bulk and you can buy §e{1}§a bulks. Enter §ball§a in chat to buy all.\",\n \"language-name\": \"en-US\",\n \"exceeded-maximum\": \"§cThe value exceeded the maximum value in Java.\",\n \"unlimited-shop-owner-keeped\": \"§eAttention: The Shop Owner is still an unlimited Shop Owner, and you have to re-set the new Shop Owner by yourself.\",\n \"no-enough-money-to-keep-shops\": \"§cYou didn't have enough money to keep your shops! All shops have been removed...\",\n \"3rd-plugin-build-check-failed\": \"§c3rd party plugin §l{0}§r§c denied the permission checks, did you have permission set up in there?\",\n \"not-a-integer\": \"§cYou must input a integer, your input was {0}.\",\n \"translation-country\": \"Language Zone: English (en_US)\",\n \"buying-more-than-selling\": \"§cWARNING: You are buying items for more than you are selling them!\",\n \"purchase-failed\": \"§cPurchase failed: Internal Error. Please contact the Server Administrator.\",\n \"denied-put-in-item\": \"§cYou cannot put this item into your shop!\",\n \"shop-has-changed\": \"§cThe shop you tried to use has changed since you clicked it!\",\n \"flush-finished\": \"§aSuccessfully flushed the messages.\",\n \"no-price-given\": \"§cPlease give a valid price.\",\n \"shop-already-owned\": \"§cThis is already a shop.\",\n \"backup-success\": \"§aBackup successfull.\",\n \"not-looking-at-shop\": \"§cCould not find a QuickShop. You need to look at one.\",\n \"you-cant-afford-a-new-shop\": \"§cIt costs {0} to create a new shop.\",\n \"success-created-shop\": \"§cShop created.\",\n \"shop-creation-cancelled\": \"§cShop creation cancelled.\",\n \"shop-owner-self-trade\": \"§eYou trade with your own shop, so you might not gain any balance.\",\n \"player-bought-from-your-store-tax\": \"§c{0} purchased {1} {2} from your shop, and you earned {3} ({4} in taxes).\",\n \"not-enough-space\": \"§cYou only have room for {0} more!\",\n \"shop-staff-added\": \"§aSuccessfully added {0} as a staff member for your shop.\",\n \"shops-recovering\": \"Recovering shops from backup...\",\n \"menu\": {\n \"sell-tax\": \"§aYou paid §e{0} §ain taxes.\",\n \"owner\": \"§aOwner: {0}\",\n \"preview\": \"§b[Item Preview]\",\n \"enchants\": \"§5Enchantments\",\n \"sell-tax-self\": \"§aYou didn't pay taxes because you own this shop.\",\n \"shop-information\": \"§aShop Information:\",\n \"item\": \"§aItem: §e{0}\",\n \"price-per\": \"§aPrice per §e{0} §a- §e{1}\",\n \"item-name-and-price\": \"§e{0} {1} §afor §e{2}\",\n \"successful-purchase\": \"§aSuccessfully purchased:\",\n \"price-per-stack\": \"§aPrice per §e{2}x {0} - {1}\",\n \"stored-enchants\": \"§5Stored Enchantments\",\n \"item-holochat-error\": \"§c[Error]\",\n \"this-shop-is-selling\": \"§aThis shop is §bSELLING§a items.\",\n \"shop-stack\": \"§aAmount of bulk: §e{0}\",\n \"space\": \"§aSpace: §e{0}\",\n \"effects\": \"§aEffects\",\n \"damage-percent-remaining\": \"§e{0}% §aremaining.\",\n \"stock\": \"§aStock §e{0}\",\n \"this-shop-is-buying\": \"§aThis shop is §dBUYING§a items.\",\n \"successfully-sold\": \"§aSuccessfully sold:\",\n \"total-value-of-chest\": \"§aTotal value of chest: §e{0}\"\n },\n \"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.\",\n \"no-nearby-shop\": \"§cNo nearby shop matching {0}.\",\n \"translation-author\": \"Translator: Ghost_chu, Andre_601\",\n \"integrations-check-failed-trade\": \"§cIntegration {0} denied the Shop trading\",\n \"success-change-owner-to-server\": \"§aSuccessfully set the shop owner to Server.\",\n \"permission-denied-3rd-party\": \"§cPermission denied: 3rd Party Plugin [{0}].\",\n \"you-dont-have-that-many-items\": \"§cYou only have {0} {1}.\",\n \"complete\": \"§aComplete!\",\n \"translate-not-completed-yet-url\": \"The translation of the language {0} was not completed yet by {1}. Do you want to help us improving the translation? Browse: {2}\",\n \"success-removed-shop\": \"§aShop removed.\",\n \"currency-set\": \"§aShop currency successfully set to {0}.\",\n \"nothing-to-flush\": \"§aYou have no new shop messages.\",\n \"no-price-change\": \"§cThis wouldn't result in a price change!\",\n \"file-test\": \"This is a test text file. We use it to test if the messages.json is broken. You can fill it with any easter-eggs you like here :)\",\n \"unknown-player\": \"§cTarget player doesn't exist, please check the username you typed.\",\n \"language\": {\n \"qa-issues\": \"§eQuality assurance issues: §b{0}%\",\n \"code\": \"§eCode: §6{0}\",\n \"approval-progress\": \"§eApproval Progress: §b{0}%\",\n \"translate-progress\": \"§eTranslation Progress: §b{0}%\",\n \"name\": \"§eName: §6{0}\",\n \"help-us\": \"§a[Help us improve the translation quality]\"\n },\n \"warn-to-paste\": \"§eCollecting data and uploading it to Pastebin, this may take a while. §c§lWarning:§c The data is kept public for one week! It may leak your server configuration and other sensitive information. Make sure you only send it to §ltrusted staff/developers.\",\n \"how-many-sell-stack\": \"§aEnter in chat, how many bulk you wish to §dSELL§a. There are §e{0}§a items per bulk and you have §e{1}§a bulks available. Enter §ball§a in chat to sell all.\",\n \"updatenotify\": {\n \"buttontitle\": \"[Update Now]\",\n \"onekeybuttontitle\": \"[OneKey Update]\",\n \"label\": {\n \"unstable\": \"[Unstable]\",\n \"github\": \"[GitHub]\",\n \"stable\": \"[Stable]\",\n \"lts\": \"[LTS]\",\n \"spigotmc\": \"[SpigotMC]\",\n \"qualityverifyed\": \"[Quality]\",\n \"bukkitdev\": \"[BukkitDev]\",\n \"master\": \"[Master]\"\n },\n \"list\": [\n \"{0} was released. You are still using {1}!\",\n \"Boom! New update {0} incoming. Update!\",\n \"Surprise! {0} came out. You are on {1}\",\n \"Looks like you need to update. {0} was released!\",\n \"Ooops! {0} was now released. You are on {1}!\",\n \"I swear, QS has been updated to {0}. Why have you not updated yet?\",\n \"Fixing and re... Sorry, but {0} was released!\",\n \"Err! Nope. This is not an error. {0} has been released!\",\n \"OMG! {0} came out! Why are you still using {1}?\",\n \"Todays News: QuickShop has been updated to {0}!\",\n \"Plugin k.i.a. You should update to {0}!\",\n \"Update {0} ignited. Save update!\",\n \"There is an update available Commander. {0} has just came out!\",\n \"Look my style---{0} updated. You're still using {1}\",\n \"Ahhhhhhh! New update {0}! Update!\",\n \"What do you think? {0} has been released! Update!\",\n \"Doctor, QuickShop has a new update {0}! You should update~\",\n \"Ko~ko~da~yo~ QuickShop has a new update {0} ~\"\n ],\n \"remote-disable-warning\": \"§cThis version of QuickShop is marked as disabled by the remote server, which means this version may have serious problem, get details from our SpigotMC page: {0}. This warning will continue to appear until you switch to a stable version, but it will not affect your server's performance.\"\n },\n \"nearby-shop-entry\": \"§a- Info:{0} §aPrice:§b{1} §ax:§b{2} §ay:§b{3} §az:§b{4} §adistance: §b{5} §ablock(s)\",\n \"chest-title\": \"QuickShop Store\",\n \"console-only\": \"§cThis command can only be executed by Console.\",\n \"failed-to-put-sign\": \"§cNot enough space around the shop to place the info sign.\",\n \"shop-nolonger-freezed\": \"§aYou unfroze the shop. It's back to normal now!\",\n \"no-permission-build\": \"§cYou cannot build a shop here.\",\n \"tableformat\": {\n \"left_half_line\": \"+--------------------\",\n \"right_half_line\": \"--------------------+\",\n \"full_line\": \"+---------------------------------------------------+\",\n \"left_begin\": \"| \"\n },\n \"quickshop-gui-preview\": \"QuickShop GUI Item Preview\",\n \"translate-not-completed-yet-click\": \"The translation of the language {0} was not completed yet by {1}. Do you want to help us improving the translation? Click here!\",\n \"player-bought-from-your-store\": \"§c{0} purchased {1} {2} from your shop, and you earned {3}.\",\n \"reached-maximum-can-create\": \"§cYou already created a maximum of {0}/{1} shops!\",\n \"translation-version\": \"Support Version: Reremake\",\n \"no-double-chests\": \"§cYou cannot create the double chest shop.\",\n \"price-too-cheap\": \"§cPrice must be greater than §e${0}\",\n \"shop-not-exist\": \"§cThere is no shop.\",\n \"clean-warning\": \"§eThis command will purge §call §eshops if the shop is damaged, was created in not allowed worlds, is selling/buying not allowed items or §c§lEXISTS IN A UNLOADED WORLD§e. Make sure to create a full backup of your shop data first and use §b/qs cleanghost confirm §eto continue.\",\n \"shop-purchase-cancelled\": \"§cShop purchase cancelled.\",\n \"bypassing-lock\": \"§cBypassing a QuickShop lock!\",\n \"saved-to-path\": \"The Backup was saved to {0}.\",\n \"shop-now-freezed\": \"§aYou have frozen the shop. Nobody can trade with this shop now!\",\n \"price-is-now\": \"§aThe new price of the shop is §e{0}\",\n \"shops-arent-locked\": \"§cRemember, shops are NOT protected from theft! If you want to stop thieves, lock it with LWC, Lockette, etc!\",\n \"that-is-locked\": \"§cThis shop is locked.\",\n \"shop-has-no-space\": \"§cThe shop only has room for {0} more {1}.\",\n \"shop-stock-too-low\": \"§cThe shop only has {0} {1} left!\",\n \"world-not-exists\": \"§cThe world §e{0}§c doesn't exist\",\n \"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.\",\n \"shop-freezed-at-location\": \"§eYour shop {0} at {1} got frozen!\",\n \"translation-contributors\": \"Contributors: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601\",\n \"empty-success\": \"§aEmptying shop successful\",\n \"supertool-is-disabled\": \"§cSupertool is disabled. Cannot break any shops.\",\n \"unknown-owner\": \"Unknown\",\n \"restricted-prices\": \"§cRestricted price for {0}: Min {1}, max {2}\",\n \"nearby-shop-this-way\": \"§aShop is {0} blocks away from you.\",\n \"owner-bypass-check\": \"§eBypassed all checks. Trade successful! (You are now the shop owner!)\",\n \"signs\": {\n \"item\": \"{0}\",\n \"out-of-space\": \"Out of Space\",\n \"unlimited\": \"Unlimited\",\n \"stack-selling\": \"Selling {0}\",\n \"stack-price\": \"{0} per {1}x {2}\",\n \"status-unavailable\": \"§c\",\n \"out-of-stock\": \"Out of Stock\",\n \"stack-buying\": \"Buying {0}\",\n \"freeze\": \"Trading disabled\",\n \"price\": \"{0} each\",\n \"buying\": \"Buying {0}\",\n \"header\": \"{1}{0}\",\n \"selling\": \"Selling {0}\",\n \"status-available\": \"§a\"\n },\n \"negative-amount\": \"§cYou can't trade negative amounts\",\n \"shop-staff-deleted\": \"§aSuccessfully removed {0} as a staff member for your shop.\",\n \"nearby-shop-header\": \"§aNearby Shop matching §b{0}§a:\",\n \"backup-failed\": \"Cannot backup the database. Check the console for details.\",\n \"shop-staff-cleared\": \"§aSuccessfully removed all staff members from your shop.\",\n \"price-too-high\": \"§cThe shop price is too high! You cannot create one with a price higher than {0}.\",\n \"player-sold-to-your-store\": \"§a{0} sold {1} {2} to your shop.\",\n \"shop-out-of-stock\": \"§5Your shop at {0}, {1}, {2} has run out of {3}!\",\n \"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.\",\n \"language-info-panel\": {\n \"help\": \"Help us: \",\n \"code\": \"Code: \",\n \"name\": \"Language: \",\n \"progress\": \"Progress: \",\n \"translate-on-crowdin\": \"[Translate on Crowdin]\"\n },\n \"item-not-exist\": \"§cThe item §e{0} §cdoes not exist, please check your spelling.\",\n \"shop-creation-failed\": \"§cShop creation failed, please contact with server administrator.\",\n \"no-creative-break\": \"§cYou cannot break other players shops in creative mode, switch to survival mode or try to use the supertool {0} instead.\",\n \"booleanformat\": {\n \"success\": \"§a✔\",\n \"failed\": \"§c✘\"\n },\n \"controlpanel\": {\n \"stack\": \"§aPer bulk amount: §b{0} §e[§d§lChange§e]\",\n \"price-hover\": \"§eClick to set a new price for the item.\",\n \"remove\": \"§c§l[Remove Shop]\",\n \"mode-buying-hover\": \"§eClick to change the shop to SELL mode.\",\n \"empty\": \"§aEmpty: Remove all items §e[§d§lOK§e]\",\n \"stack-hover\": \"§eClick to set the amount of item per bulk. Set to 1 for normal behaviour.\",\n \"setowner\": \"§aOwner: §b{0} §e[§d§lChange§e]\",\n \"freeze\": \"§eFreeze mode: §b{0} §e[§d§lToggle§e]\",\n \"price\": \"§aPrice: §b{0} §e[§d§lChange§e]\",\n \"currency-hover\": \"§eClick to set or remove the currency that this shop is using\",\n \"lock\": \"§eShop lock: §b{0} §e[§d§lToggle§e]\",\n \"mode-selling\": \"§aShop mode: §bSelling §e[§d§lChange§e]\",\n \"currency\": \"§aCurrency: §b{0} §e[§d§lSet§e]\",\n \"setowner-hover\": \"§eClick to switch owner.\",\n \"mode-buying\": \"§aShop mode: §bBuying §e[§d§lChange§e]\",\n \"item\": \"§aShop Item: {0} §e[§d§lChange§e]\",\n \"unlimited\": \"§aUnlimited: {0} §e[§d§lChange§e]\",\n \"unlimited-hover\": \"§eClick to toggle if the shop is unlimited.\",\n \"refill-hover\": \"§eClick to refill the shop.\",\n \"remove-hover\": \"§eClick to remove this shop.\",\n \"refill\": \"§aRefill: Refill the items §e[§d§lOK§e]\",\n \"freeze-hover\": \"§eToggle the shop's freeze status.\",\n \"lock-hover\": \"§eEnable/Disable the shop's lock protection.\",\n \"item-hover\": \"§eClick to change shop Item\",\n \"infomation\": \"§aShop Control panel:\",\n \"mode-selling-hover\": \"§eClick to change the shop to BUY mode.\",\n \"empty-hover\": \"§eClick to clear the inventory of the shop.\"\n },\n \"command\": {\n \"reloading\": \"§aReloading...\",\n \"description\": {\n \"buy\": \"§eChanges a shop to §dBUY§e mode\",\n \"about\": \"§eShows QuickShop info\",\n \"language\": \"§eChange the currently used language\",\n \"paste\": \"§eUploads server data to Pastebin\",\n \"title\": \"§aQuickShop help\",\n \"remove\": \"§eRemoves the shop you're looking at\",\n \"ban\": \"§eBan a player from the shop\",\n \"empty\": \"§eRemoves all items from a shop\",\n \"setowner\": \"§eChanges the ownership of a shop.\",\n \"reload\": \"§eReloads the config.yml of QuickShop\",\n \"freeze\": \"§eDisable or Enable shop trading\",\n \"price\": \"§eChanges the buy/sell price of a shop\",\n \"find\": \"§eLocates the nearest shop of a specific type.\",\n \"create\": \"§eCreates a new shop from the targeted chest\",\n \"lock\": \"§eSwitch the shop's lock status\",\n \"currency\": \"§eSet or remove the currency setting of the shop\",\n \"removeworld\": \"§eRemove ALL shops in a specified world\",\n \"info\": \"§eShow QuickShop statistics\",\n \"owner\": \"§eChanges the ownership of a shop.\",\n \"amount\": \"§eTo set item amount (Useful when having chat issues)\",\n \"item\": \"§eChange shop item of a shop\",\n \"debug\": \"§eEnables Developer mode\",\n \"unlimited\": \"§eGives a shop unlimited stock.\",\n \"sell\": \"§eChanges a shop to §bSELL§e mode\",\n \"fetchmessage\": \"§eShow unread shop messages\",\n \"staff\": \"§eManage your shop staff\",\n \"clean\": \"§eRemoves all (loaded) shops without any stock\",\n \"refill\": \"§eAdds a given number of items to a shop\",\n \"help\": \"§eShows QuickShop help\",\n \"removeall\": \"§eRemove ALL shops of a specified player\",\n \"unban\": \"§eUnban a player from the shop\",\n \"transfer\": \"§eTransfer someone's ALL shops to other\",\n \"size\": \"§eChange per bulk amount of a shop\",\n \"supercreate\": \"§eCreate a shop while bypassing all protection checks\"\n },\n \"bulk-size-not-set\": \"§cUsage: /qs size \",\n \"no-type-given\": \"§cUsage: /qs find \",\n \"feature-not-enabled\": \"This feature is not enabled in the config file.\",\n \"now-debuging\": \"§aSuccessfully enabled developer mode. Reloading QuickShop...\",\n \"no-amount-given\": \"§cNo amount provided. Use §a/qs refill §c\",\n \"no-owner-given\": \"§cNo owner provided\",\n \"disabled\": \"§cThis command is disabled: §e{0}\",\n \"bulk-size-now\": \"§aNow trading §e{0}x {1}\",\n \"cleaning\": \"§aRemoving shops without any stock...\",\n \"now-nolonger-debuging\": \"§aSuccessfully disabled Developer mode. Reloading QuickShop...\",\n \"toggle-unlimited\": {\n \"limited\": \"§aShop is now limited\",\n \"unlimited\": \"§aShop is now unlimited\"\n },\n \"transfer-success-other\": \"§aTransferred §e{0} {1}§a's shop(s) to §e{2}\",\n \"no-trade-item\": \"§aPlease hold a trade item to change in main hand\",\n \"wrong-args\": \"§cInvalid argument. Use §l/qs help §cto see a list of commands.\",\n \"some-shops-removed\": \"§e{0} §ashop(s) removed\",\n \"new-owner\": \"§aNew owner: §e{0}\",\n \"transfer-success\": \"§aTransferred §e{0} §ashop(s) to §e{1}\",\n \"now-buying\": \"§aNow §dBUYING §e{0}\",\n \"now-selling\": \"§aNow §bSELLING §e{0}\",\n \"cleaned\": \"§aRemoved §e{0}§a shops.\",\n \"trade-item-now\": \"§aNow trading §e{0}x {1}\",\n \"no-world-given\": \"§cPlease specify a world name\",\n \"invalid-bulk-amount\": \"§cThe given value {0} is larger than max stack size or lower than one\"\n },\n \"currency-not-support\": \"§cThe economy plugin doesn't support the multi-economy feature.\",\n \"trading-in-creative-mode-is-disabled\": \"§cYou cannot trade with this shop while being in creative mode.\",\n \"the-owner-cant-afford-to-buy-from-you\": \"§cThis costs {0}, but the shop-owner only has {1}\",\n \"integrations-check-failed-create\": \"§cIntegration {0} denied the shop-creation\",\n \"shop-out-of-space\": \"§5Your shop at {0}, {1}, {2} is now full.\",\n \"admin-shop\": \"AdminShop\",\n \"no-anythings-in-your-hand\": \"§cThere is nothing in your hand.\",\n \"no-permission\": \"§cYou do not have permission to do that.\",\n \"chest-was-removed\": \"§cThe chest was removed.\",\n \"you-cant-afford-to-buy\": \"§cIt costs {0}, but you only have {1}\",\n \"shops-removed-in-world\": \"§eTotal §b{0}§e shops has been deleted in world §b{1}§e.\",\n \"language-version\": 58,\n \"not-managed-shop\": \"§cYou are not the owner or moderator of this Shop\",\n \"shop-cannot-trade-when-freezing\": \"§cYou cannot trade with this shop because it is frozen.\"\n}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aLa tienda ahora es ilimitada.",
"limited": "&aLa tienda ahora es limitada."
diff --git a/src/main/resources/lang/fi-FI/messages.json b/src/main/resources/lang/fi-FI/messages.json
index 0c892666b..724dd3061 100644
--- a/src/main/resources/lang/fi-FI/messages.json
+++ b/src/main/resources/lang/fi-FI/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cEt voi myydä tätä tavaraa, koska se on mustalla listalla",
"how-much-to-trade-for": "&aKirjoita chattiin, mihin hintaan haluat vaihtaa &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aKaupassa on nyt rajattomasti tavaroita",
"limited": "&aKauppa ei ole enää rajaton"
diff --git a/src/main/resources/lang/fr-FR/messages.json b/src/main/resources/lang/fr-FR/messages.json
index 02327588c..986258a53 100644
--- a/src/main/resources/lang/fr-FR/messages.json
+++ b/src/main/resources/lang/fr-FR/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cVous ne pouvez pas vendre cet objet car il se trouve sur la liste noire",
"how-much-to-trade-for": "&aEntrez dans le chat, combien vous souhaitez échanger &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aCe shop est désormais illimité",
"limited": "&aCe shop est désormais limité"
diff --git a/src/main/resources/lang/he-IL/messages.json b/src/main/resources/lang/he-IL/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang/he-IL/messages.json
+++ b/src/main/resources/lang/he-IL/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/hu-HU/messages.json b/src/main/resources/lang/hu-HU/messages.json
index 3e5267494..c7c64961a 100644
--- a/src/main/resources/lang/hu-HU/messages.json
+++ b/src/main/resources/lang/hu-HU/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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!",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cEz a tárgy a feketelistán van! Nem tudod eladni!",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aA bolt korlátlan",
"limited": "&aA bolt korlátozott"
diff --git a/src/main/resources/lang/it-IT/messages.json b/src/main/resources/lang/it-IT/messages.json
index 3b1dc56da..796e6a8ec 100644
--- a/src/main/resources/lang/it-IT/messages.json
+++ b/src/main/resources/lang/it-IT/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cNon puoi vendere questo oggetto perché è nella blacklist",
"how-much-to-trade-for": "&aScrivi in chat, per quanto desideri fare trading &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aIl negozio è ora illimitato",
"limited": "&aIl negozio è ora limitato"
diff --git a/src/main/resources/lang/ja-JP/messages.json b/src/main/resources/lang/ja-JP/messages.json
index 995a34168..c4c9654cd 100644
--- a/src/main/resources/lang/ja-JP/messages.json
+++ b/src/main/resources/lang/ja-JP/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cQuickShopが見つかりませんでした。確認する必要があります。",
"no-anythings-in-your-hand": "&cあなたは手に何も持っていません。",
"no-permission": "&cあなたは権限を持っていないため実行できません。",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cブラックリストに載っているので、この商品を販売することはできません",
"how-much-to-trade-for": "&aチャットで&e{1}個の {0}&aをいくらで取引したいか入力してください。",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aショップは無制限になりました",
"limited": "&aショップは制限されています"
diff --git a/src/main/resources/lang/ko-KR/messages.json b/src/main/resources/lang/ko-KR/messages.json
index 09a4f866f..be428941c 100644
--- a/src/main/resources/lang/ko-KR/messages.json
+++ b/src/main/resources/lang/ko-KR/messages.json
@@ -5,7 +5,7 @@
"translation-version": "지원 버전: Reremake",
"translation-contributors": "기여자: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601",
"translation-country": "언어 지역: 한국어 (Ko)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&c퀵샵을 찾을수 없습니다. 상점을 보고있어야만합니다!",
"no-anythings-in-your-hand": "&c당신의 손에 아무것도 없습니다.",
"no-permission": "&c당신에게는 이것을 사용할 권한이 없습니다.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&c당신은 이아이템을 판매할수 없습니다. 블랙리스트에 등록되어있는 아이템입니다.",
"how-much-to-trade-for": "&a채팅에 {0}의 {1}개당 가격을 얼마로 할건지 입력해주세요.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&a상점의 재고를 무제한으로 설정했습니다. (관리자 상점으로 설정됩니다.)",
"limited": "&a상점의 재고를 제한으로 설정했습니다. (유저 상점으로 설정됩니다.)"
diff --git a/src/main/resources/lang/nl-NL/messages.json b/src/main/resources/lang/nl-NL/messages.json
index 127d305e3..3c7bb72a5 100644
--- a/src/main/resources/lang/nl-NL/messages.json
+++ b/src/main/resources/lang/nl-NL/messages.json
@@ -5,7 +5,7 @@
"translation-version": "ondersteunende versie: Reremake",
"translation-contributors": "Medewerkers",
"translation-country": "Taal Zone: Engels (nl_US)",
- "language-version": "58",
+ "language-version": "59",
"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.",
@@ -34,7 +34,7 @@
"negative-amount": "&cU kan geen negatieve bedragen verhandelen",
"not-a-number": "&cU kunt alleen een nummer invoeren, uw invoer was {0}.",
"exceeded-maximum": "&cDe waarde overschrijdt de maximale waarde in Java.",
- "not-a-integer": "&cYou must input a integer, your input was {0}.",
+ "not-a-integer": "&cU moet een nummer invoeren, uw invoer was {0}.",
"player-bought-from-your-store": "&c{0} heeft {1} {2} gekocht van uw winkel, en u heeft {3} verdiend.",
"shop-out-of-stock": "&5Uw winkel op {0}, {1}, {2} heeft geen {3} meer!",
"shop-has-no-space": "&cDe winkel heeft alleen ruimte voor {0} {1} meer.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cJe kunt dit item niet verkopen omdat het op de zwarte lijst staat",
"how-much-to-trade-for": "&aEnter in de chat, voor hoeveel u wilt handelen &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is nu ongelimiteerd",
"limited": "&aShop is nu beperkt"
@@ -174,10 +176,10 @@
"ban": "&eVerband een speler van deze winkel",
"unban": "&eHeft de ban voor deze speler in deze shop",
"freeze": "&eUitschakelen of inschakelen van winkel handelen",
- "lock": "&eSwitch the shop's lock status"
+ "lock": "&eVerander de vergrendelstatus van de winkel"
},
"disabled": "&cDeze opdracht is uitgeschakeld: &e{0}",
- "feature-not-enabled": "This feature is not enabled in the config file."
+ "feature-not-enabled": "De functie niet ingeschakeld in de config."
},
"signs": {
"selling": "Verkopen {0}",
@@ -191,9 +193,9 @@
"unlimited": "Onbeperkt",
"status-available": "&a",
"status-unavailable": "&c",
- "out-of-stock": "Out of Stock",
- "out-of-space": "Out of Space",
- "freeze": "Trading disabled"
+ "out-of-stock": "Niet op voorraad",
+ "out-of-space": "Te weinig ruimte",
+ "freeze": "Ruilen uitgeschakeld"
},
"controlpanel": {
"setowner": "&aEigenaar: &b{0} &e[&d&lChange&e]",
@@ -313,15 +315,15 @@
"currency-unset": "&aShop valuta verwijderd. Standaard instellingen nu gebruiken.",
"currency-not-support": "&cThe economy plugin ondersteunt de multi-economy functie niet.",
"item-not-exist": "&cHet item &e{0} &cbestaat niet, controleer je spelling.",
- "backup-success": "&aBackup successfull.",
- "console-only": "&cThis command can only be executed by Console.",
- "console-only-danger": "&cThis is a dangerous command, so that only the Console can execute it.",
+ "backup-success": "&aBack-up succesvol.",
+ "console-only": "Deze opdracht kan alleen worden gestart vanaf de console!",
+ "console-only-danger": "&cDit is een gevaarlijk commando, zodat alleen de console het kan uitvoeren.",
"clean-warning": "&eThis command will purge &call &eshops if the shop is damaged, was created in not allowed worlds, is selling/buying not allowed items or &c&lEXISTS IN A UNLOADED WORLD&e. Make sure to create a full backup of your shop data first and use &b/qs cleanghost confirm &eto continue.",
- "shop-creation-failed": "&cShop creation failed, please contact with server administrator.",
- "shop-owner-self-trade": "&eYou trading with yourself shop, so you might won't gain any balance.",
- "chest-title": "QuickShop Store",
+ "shop-creation-failed": "Het maken van &cShop is mislukt, neem contact op met de serverbeheerder.",
+ "shop-owner-self-trade": "Je handelt met jezelf. Je zal dan ook geen geld krijgen",
+ "chest-title": "QuickShop Winkel",
"command-type-mismatch": "&cThis command only can executed by &b{0}.",
- "unlimited-shop-owner-changed": "&eThis unlimited shop owner has been changed to {0}.",
+ "unlimited-shop-owner-changed": "&eDeze ongelimiteerde winkel is verander van eigenaar. Naar {0}.",
"unlimited-shop-owner-keeped": "&eAttention: The shop owner still is unlimited shop owner, you need re-set new shop owner by yourself.",
"server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running."
}
diff --git a/src/main/resources/lang/no-NO/messages.json b/src/main/resources/lang/no-NO/messages.json
index a27d2b245..a05a7898f 100644
--- a/src/main/resources/lang/no-NO/messages.json
+++ b/src/main/resources/lang/no-NO/messages.json
@@ -5,7 +5,7 @@
"translation-version": "Støttet versjon: Reremake",
"translation-contributors": "Bidragsytere: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken and Andre_601",
"translation-country": "Språksone: Norsk (no_NO)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cKunne ikke finne en QuickShop. Du må se på en butikk.",
"no-anythings-in-your-hand": "&cDet er ingenting i hånden din.",
"no-permission": "&cDu har ikke tillatelse til å gjøre det.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cDu kan ikke selge denne gjenstanden fordi den er på svartelisten",
"how-much-to-trade-for": "&aSkriv i chat hvor mye du ønsker å selge &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aButikken er nå ubegrenset",
"limited": "&aButikken er nå begrenset"
diff --git a/src/main/resources/lang/pl-PL/messages.json b/src/main/resources/lang/pl-PL/messages.json
index 3022d3397..1ba6f1921 100644
--- a/src/main/resources/lang/pl-PL/messages.json
+++ b/src/main/resources/lang/pl-PL/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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ć.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cNie możesz sprzedać tego przedmiotu, ponieważ znajduje się na czarnej liście",
"how-much-to-trade-for": "&aWpisz na czacie cenę za &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aSklep jest teraz nieograniczony",
"limited": "&aSklep jest teraz limitowany"
diff --git a/src/main/resources/lang/pt-BR/messages.json b/src/main/resources/lang/pt-BR/messages.json
index 168774937..9a0c66e1a 100644
--- a/src/main/resources/lang/pt-BR/messages.json
+++ b/src/main/resources/lang/pt-BR/messages.json
@@ -1,11 +1,11 @@
{
- "_comment": "Hi translator! If you editing this from Github or from code sources, you should go https://crowdin.com/project/quickshop-reremake",
+ "_comment": "Olá, tradutor! Se você editar isso do Github ou de fontes de código, você deve ir https://crowdin.com/project/quickshop-remake",
"file-test": "Este é um arquivo de texto de teste. Nós o usamos para testar se as mensagens são enviadas. filho está quebrado. Você pode preenchê-lo com quaisquer ovos de Páscoa que goste aqui :)",
"translation-author": "Tradutor: Ghost_chu, Andre_601",
"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": "58",
+ "language-version": "59",
"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.",
@@ -34,7 +34,7 @@
"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": "&cO valor excedeu o valor máximo em Java.",
- "not-a-integer": "&cYou must input a integer, your input was {0}.",
+ "not-a-integer": "&cVocê precisa inserir um número inteiro, sua entrada era {0}.",
"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}.",
@@ -45,7 +45,7 @@
"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 consisten with vanilla behaviour",
+ "forbidden-vanilla-behavior": "&cA operação é proibida porque não é compatível com o comportamento de baunilha",
"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!",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cVocê não pode vender este item porque ele está na lista negra",
"how-much-to-trade-for": "&aDigite no chat, por quanto você deseja vender &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aLoja agora é ilimitada",
"limited": "&aLoja agora é limitada"
@@ -139,7 +141,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 argument. Use &l/qs help &cto see a list of commands.",
+ "wrong-args": "&cArgumento inválido. Use &l/qs help &cpara ver uma lista de comandos.",
"description": {
"title": "&aAjuda do QuickShop",
"unlimited": "&eDá um estoque ilimitado para a loja.",
@@ -170,14 +172,14 @@
"removeall": "&eRemover TODAS as lojas de um jogador",
"transfer": "&eTransfira TODAS as lojas de alguém para outra",
"removeworld": "&eRemover TODAS as lojas em um mundo específico",
- "currency": "&eSet or remove the currency setting of the shop",
- "ban": "&eBans a player from the shop",
- "unban": "&eUnbans a player from the shop",
+ "currency": "&eDefinir ou remover as configurações de moeda da loja",
+ "ban": "&eBane um jogador da loja",
+ "unban": "&eDesbane um jogador da loja",
"freeze": "&eDesativar ou Ativar o comércio de lojas",
- "lock": "&eSwitch the shop's lock status"
+ "lock": "&eAlterne o status de bloqueio da loja"
},
"disabled": "&cEste comando está desativado: &e{0}",
- "feature-not-enabled": "This feature is not enabled in the config file."
+ "feature-not-enabled": "Esse recurso não está ativado no arquivo de configuração."
},
"signs": {
"selling": "Vendendo {0}",
@@ -193,7 +195,7 @@
"status-unavailable": "&c",
"out-of-stock": "Sem Estoque",
"out-of-space": "Sem espaço",
- "freeze": "Trading disabled"
+ "freeze": "Trading desabilitado"
},
"controlpanel": {
"setowner": "&aProprietário: &b{0} &e[&d&lMudar&e]",
@@ -220,9 +222,9 @@
"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": "&eEnable/Disable the shop's lock protection.",
+ "lock-hover": "&eEnable/Disable proteção de bloqueio de loja",
"freeze": "&eModo de bloqueio: &b{0} &e[&d&lToggle&e]",
- "freeze-hover": "&eToggle the shop's freeze status."
+ "freeze-hover": "&eAlterna o status de congelamento da loja."
},
"tableformat": {
"full_line": "+---------------------------------------------------+",
@@ -264,7 +266,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 as disabled by the remote server, which means this version may have serious problem, get details from our SpigotMC page: {0}. This warning will continue to appear until you switch to a stable version, but it will not affect your server's performance.",
+ "remote-disable-warning": "&cEsta versão do QuickShop está marcada como desabilitada pelo servidor remoto o que significa que esta versão pode ter problemas sérios, obtenha detalhes da nossa página do SpigotMC: {0}. Este aviso continuará a aparecer até que você mude para uma versão estável, mas isso não afetará a performance do seu servidor.",
"label": {
"unstable": "[Instável]",
"stable": "[Estável]",
@@ -313,15 +315,15 @@
"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 successfull.",
- "console-only": "&cThis command can only be executed by Console.",
- "console-only-danger": "&cThis is a dangerous command, so that only the Console can execute it.",
- "clean-warning": "&eThis command will purge &call &eshops if the shop is damaged, was created in not allowed worlds, is selling/buying not allowed items or &c&lEXISTS IN A UNLOADED WORLD&e. Make sure to create a full backup of your shop data first and use &b/qs cleanghost confirm &eto continue.",
- "shop-creation-failed": "&cShop creation failed, please contact with server administrator.",
- "shop-owner-self-trade": "&eYou trading with yourself shop, so you might won't gain any balance.",
- "chest-title": "QuickShop Store",
- "command-type-mismatch": "&cThis command only can executed by &b{0}.",
- "unlimited-shop-owner-changed": "&eThis unlimited shop owner has been changed to {0}.",
- "unlimited-shop-owner-keeped": "&eAttention: The shop owner still is unlimited shop owner, you need re-set new shop owner by yourself.",
- "server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running."
+ "backup-success": "&aBackup bem sucedido.",
+ "console-only": "&cEste comando só pode ser executado pelo Console.",
+ "console-only-danger": "&cEste é um comando perigoso, de modo que apenas o Console possa executá-lo.",
+ "clean-warning": "&eEste comando irá limpar &chamar o &eshops se a loja estiver danificada, foi criada em mundos não permitidos, está vendendo/comprando itens não permitidos ou &c&lEXISTE EM UM MUNDO DESCARREGADO. Certifique-se de criar um backup completo dos dados da loja primeiro e usar a limpeza &b/qs &epara continuar.",
+ "shop-creation-failed": "A criação da &cShop falhou, por favor, contate o administrador do servidor.",
+ "shop-owner-self-trade": "&eVocê pode fazer trading consigo mesmo para não ganhar nenhum saldo.",
+ "chest-title": "Loja QuickShop",
+ "command-type-mismatch": "&cEste comando só pode ser executado por&b{0}.",
+ "unlimited-shop-owner-changed": "&eEste proprietário de loja ilimitado foi alterado para {0}.",
+ "unlimited-shop-owner-keeped": "&eAtenção: O proprietário da loja ainda possui um proprietário ilimitado de loja, você precisa redefinir o dono da nova loja por conta própria.",
+ "server-crash-warning": "&cO servidor pode falhar após executar o comando /qs reload se você substituir/delete o arquivo Jar do plugin QuickShop enquanto o servidor é executado."
}
diff --git a/src/main/resources/lang/pt-PT/messages.json b/src/main/resources/lang/pt-PT/messages.json
index 12df320ba..27a68c3ac 100644
--- a/src/main/resources/lang/pt-PT/messages.json
+++ b/src/main/resources/lang/pt-PT/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cCould not find a QuickShop. You need to look at one.",
"no-anythings-in-your-hand": "&Não tens nada na mão.",
"no-permission": "&cNão tens permissão para fazer isso.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/ro-RO/messages.json b/src/main/resources/lang/ro-RO/messages.json
index dcd05eb6c..57a542e37 100644
--- a/src/main/resources/lang/ro-RO/messages.json
+++ b/src/main/resources/lang/ro-RO/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.\".",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cNu poti vinde acest obiect pentru ca este pe lista neagra",
"how-much-to-trade-for": "&aIntra in chat, cat de mult doresti sa tranzacționezi &{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aMagazinul este acum nelimitat",
"limited": "&aMagazinul este acum limitat"
diff --git a/src/main/resources/lang/ru-RU/messages.json b/src/main/resources/lang/ru-RU/messages.json
index ef3d81a37..e5af18eac 100644
--- a/src/main/resources/lang/ru-RU/messages.json
+++ b/src/main/resources/lang/ru-RU/messages.json
@@ -5,7 +5,7 @@
"translation-version": "Поддерживаемая версия: Reremake",
"translation-contributors": "Участники: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken и Andre_601",
"translation-country": "Языковой регион: Русский (ru_RU)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cНе удалось найти игрока, который использует магазина. Возможно игрок не зарегистрирован.",
"no-anythings-in-your-hand": "&cУ вас нет товаров в руках.",
"no-permission": "У вас недостаточно прав.",
@@ -34,7 +34,7 @@
"negative-amount": "&cВы не можете торговать отрицательной суммой",
"not-a-number": "&cМожно ввести только число, введенное вами было {0}.",
"exceeded-maximum": "&cЗначение превысило максимальное значение в Java.",
- "not-a-integer": "&cYou must input a integer, your input was {0}.",
+ "not-a-integer": "&cВы должны ввести целое число. Вы написали {0}.",
"player-bought-from-your-store": "&c{0} купил {1}x {2} в вашем магазине, и вы зарабатывали {3}.",
"shop-out-of-stock": "&5Ваш магазин в {0}, {1}, {2} закончился {3}!",
"shop-has-no-space": "&cМагазин может вместить ещё {0} {1}.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cВы не можете продать этот товар, потому что он находится в черном списке",
"how-much-to-trade-for": "&aВводите в чат, сколько вы хотите обменивать &e{1}x {0}&a.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aМагазин теперь неограничен",
"limited": "&aМагазин теперь ограничен"
diff --git a/src/main/resources/lang/sr-SP/messages.json b/src/main/resources/lang/sr-SP/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang/sr-SP/messages.json
+++ b/src/main/resources/lang/sr-SP/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/sv-SE/messages.json b/src/main/resources/lang/sv-SE/messages.json
index 5e8d73780..544e0d916 100644
--- a/src/main/resources/lang/sv-SE/messages.json
+++ b/src/main/resources/lang/sv-SE/messages.json
@@ -5,7 +5,7 @@
"translation-version": "Supportversion: Reremake",
"translation-contributors": "Medhjälpare: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken och Andre_601",
"translation-country": "Språkområde: Svenska (sv_SE)",
- "language-version": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cDu kan inte sälja detta föremål eftersom det finns på svartlistan",
"how-much-to-trade-for": "&aAnge i chatten, hur mycket du vill sälja &e{1}x {0}&a för.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aButiken är nu obegränsad",
"limited": "&aButiken är nu begränsad"
@@ -173,7 +175,7 @@
"currency": "&eAnge eller ta bort valutainställningarna i butiken",
"ban": "&eBannlyser en spelare från butiken",
"unban": "&eUnbannar en spelare från butiken",
- "freeze": "&eDisable or Enable shop trading",
+ "freeze": "&eInaktivera eller aktivera butikshandel",
"lock": "&eVäxla butikens låsstatus"
},
"disabled": "&cDetta kommando är inaktiverat: &e{0}",
@@ -191,8 +193,8 @@
"unlimited": "Obegränsad",
"status-available": "&a",
"status-unavailable": "&c",
- "out-of-stock": "Out of Stock",
- "out-of-space": "Out of Space",
+ "out-of-stock": "Slut i Lager",
+ "out-of-space": "Slut på utrymme",
"freeze": "Handel inaktiverad"
},
"controlpanel": {
@@ -219,9 +221,9 @@
"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",
- "lock": "&eShop lock: &b{0} &e[&d&lToggle&e]",
+ "lock": "&eButikslås: &b{0} &e[&d&lVäxla&e]",
"lock-hover": "&eAktivera/Inaktivera butikens låsskydd.",
- "freeze": "&eFreeze mode: &b{0} &e[&d&lToggle&e]",
+ "freeze": "&eFryst läge: &b{0} &e[&d&lVäxla&e]",
"freeze-hover": "&eVäxla butikens frysningsstatus."
},
"tableformat": {
@@ -323,5 +325,5 @@
"command-type-mismatch": "&cDetta kommando kan endast exekveras av &b{0}.",
"unlimited-shop-owner-changed": "&eDenna obegränsade butikens ägare har ändrats till {0}.",
"unlimited-shop-owner-keeped": "&eObservera: Butiksägaren är fortfarande ägare av obegränsad butik, du behöver själv byta ny butiksägare igen.",
- "server-crash-warning": "&cServer may crash after execute /qs reload command if you replace/delete QuickShop plugin Jar file while server running."
+ "server-crash-warning": "&cServer kan krascha efter körning av /qs reload om du ersätter/tar bort QuickShop plugin Jar-fil medan servern körs."
}
diff --git a/src/main/resources/lang/tr-TR/messages.json b/src/main/resources/lang/tr-TR/messages.json
index 3e9ce3202..d11e52ac9 100644
--- a/src/main/resources/lang/tr-TR/messages.json
+++ b/src/main/resources/lang/tr-TR/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cBu öğeyi satamazsın çünkü kara listede",
"how-much-to-trade-for": "&e{1} &atane &e{0} &aiçin ne kadar ticaret yapmak istediğini sohbete yaz.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aMarket şimdi sınırsız",
"limited": "&aMarket şimdi sınırlı"
diff --git a/src/main/resources/lang/uk-UA/messages.json b/src/main/resources/lang/uk-UA/messages.json
index 9a3ea4ab5..20d1d88a9 100644
--- a/src/main/resources/lang/uk-UA/messages.json
+++ b/src/main/resources/lang/uk-UA/messages.json
@@ -5,7 +5,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": "58",
+ "language-version": "59",
"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.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/vi-VN/messages.json b/src/main/resources/lang/vi-VN/messages.json
index 065412787..019902b48 100644
--- a/src/main/resources/lang/vi-VN/messages.json
+++ b/src/main/resources/lang/vi-VN/messages.json
@@ -5,7 +5,7 @@
"translation-version": "Phiên bản hỗ trợ: Reremake",
"translation-contributors": "Người đóng góp: huyhhuy",
"translation-country": "Vùng ngôn ngữ: Tiếng Việt (vi_VN)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&cKhông thể tìm ra QuickShop. Bạn cần phải nhìn vào nó trước.",
"no-anythings-in-your-hand": "&cChẳng có gì trong tay bạn cả.",
"no-permission": "&cBạn không có quyền làm thế.",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/zh-CN/messages.json b/src/main/resources/lang/zh-CN/messages.json
index e75236f55..9024e23a6 100644
--- a/src/main/resources/lang/zh-CN/messages.json
+++ b/src/main/resources/lang/zh-CN/messages.json
@@ -5,7 +5,7 @@
"translation-version": "支持版本:Reremake",
"translation-contributors": "开发贡献者:Timtower, Netherfoam, KaiNoMood JackTheChicken 和 Andre_601",
"translation-country": "本地化语言:简体中文 (zh_CN)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&c无法找到商店,您需要注视着你想要操作的商店。",
"no-anythings-in-your-hand": "&c你的手里没有任何物品。",
"no-permission": "&c你没有权限这样做。",
@@ -115,6 +115,8 @@
"blacklisted-item": "&c这件物品已经被拉黑,你不能出售它",
"how-much-to-trade-for": "&a请在聊天中输入交易&e{1}个{0}&a所需的价格。",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&a商店已更改为无限模式",
"limited": "&a商店已更改为普通模式。"
diff --git a/src/main/resources/lang/zh-HK/messages.json b/src/main/resources/lang/zh-HK/messages.json
index 038e974fe..d3c8f418e 100644
--- a/src/main/resources/lang/zh-HK/messages.json
+++ b/src/main/resources/lang/zh-HK/messages.json
@@ -5,7 +5,7 @@
"translation-version": "支援版本: Reremake",
"translation-contributors": "貢獻者: Timtower, Netherfoam, KaiNoMood, Mgazul, JackTheChicken 同埋 Andre_601",
"translation-country": "語言區域: 中文(zh_HK)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&c我搵唔到一個箱子商店, 唔該望住個箱, 如果唔係我辨認唔到",
"no-anythings-in-your-hand": "&c 你隻手都冇嘢",
"no-permission": "&c你冇權啊",
@@ -17,9 +17,9 @@
"supertool-is-disabled": "&cSupertool is disabled. Cannot break any shops.",
"no-double-chests": "&cYou cannot create the double chest shop.",
"not-managed-shop": "&cYou are not the owner or moderator of this Shop",
- "shop-already-owned": "&cThis is already a shop.",
- "chest-was-removed": "&cThe chest was removed.",
- "price-too-cheap": "&cPrice must be greater than &e${0}",
+ "shop-already-owned": "&c這裡已經是一家商店了",
+ "chest-was-removed": "&c箱子被移除了",
+ "price-too-cheap": "&c價格必須大於&e${0}",
"no-price-change": "&cThis wouldn't result in a price change!",
"you-cant-afford-a-new-shop": "&cIt costs {0} to create a new shop.",
"player-bought-from-your-store-tax": "&c{0} purchased {1} {2} from your shop, and you earned {3} ({4} in taxes).",
@@ -59,7 +59,7 @@
"refill-success": "&aRefill successful",
"empty-success": "&aEmptying shop successful",
"admin-shop": "AdminShop",
- "unknown-owner": "Unknown",
+ "unknown-owner": "未知",
"owner-bypass-check": "&eBypassed all checks. Trade successful! (You are now the shop owner!)",
"reached-maximum-can-create": "&cYou already created a maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
@@ -115,6 +115,8 @@
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aShop is now unlimited",
"limited": "&aShop is now limited"
diff --git a/src/main/resources/lang/zh-TW/messages.json b/src/main/resources/lang/zh-TW/messages.json
index ae12f659e..330935351 100644
--- a/src/main/resources/lang/zh-TW/messages.json
+++ b/src/main/resources/lang/zh-TW/messages.json
@@ -5,7 +5,7 @@
"translation-version": "支援版本 : Reremake (重製版)",
"translation-contributors": "貢獻人員 : Timtower、Netherfoam、KaiNoMood、Mgazul、JackTheChicken 和 Andre_601",
"translation-country": "語言 : &b&l繁體中文 Chinese Traditional (zh_TW)",
- "language-version": "58",
+ "language-version": "59",
"not-looking-at-shop": "&c無法找到儲物箱商店,你需要注視著儲物箱。",
"no-anythings-in-your-hand": "&c手上沒有任何東西。",
"no-permission": "&4你沒有使用該指令的權限。",
@@ -115,6 +115,8 @@
"blacklisted-item": "&c由於這是黑名單的物品,所以你不能賣。",
"how-much-to-trade-for": "&a請在聊天室中輸入你想買賣 &e{1} 個 {0} &a的價格。",
"command": {
+ "format": "&a/{0} {1} &e- {2}",
+ "format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&a這個商店現在已沒有數量限制",
"limited": "&a這個商店現在已恢復數量限制"
@@ -142,14 +144,14 @@
"wrong-args": "&c無效的參數 。 使用 &l/qs help &c 查看指令列表。",
"description": {
"title": "&aQuickShop 說明",
- "unlimited": "&e將商店設為庫存無限。",
+ "unlimited": "&e將商店設為無限庫存。",
"setowner": "&e為商店設置新的店主。",
"owner": "&e為商店設置新的店主。",
- "buy": "&e切換到 &d收購 &e模式",
- "sell": "&e切換到 &d出售 &e模式",
- "price": "&e切換 收購/出售 的價格",
+ "buy": "&e修改成 &d收購 &e模式",
+ "sell": "&e修改成 &d出售 &e模式",
+ "price": "&e修改 收購/出售 的價格",
"clean": "&e刪除所有 (已載入) 沒有商品的商店",
- "find": "&e在附近搜尋具有指定物品類型的商店 。",
+ "find": "&e在附近搜尋具有指定物品類型的商店。",
"reload": "&e重新載入 QuickShop",
"refill": "&e將一定數量的商品加到商店",
"empty": "&e清空商店空間",
@@ -169,7 +171,7 @@
"language": "&e修改正在使用的語言",
"removeall": "&e刪除該玩家的所有商店",
"transfer": "&e我們將某人的所有商店轉移給其他人",
- "removeworld": "&e指定世界的商店已全部刪除",
+ "removeworld": "&e刪除指定世界的商店",
"currency": "&e設置或移除目前商店的貨幣設定",
"ban": "&e解除封禁商店中的玩家",
"unban": "&e解除封禁商店中的玩家",
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 8084e9924..4cc9a4c98 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,7 +1,7 @@
name: ${project.name}
main: ${package}.${project.name}
version: ${project.version}
-authors: [ PotatoCraft Studio, Netherfoam, Timtower, KaiNoMood, Ghost_chu, Mgazul, TiaraRinne, sandtechnology, Starmism, Chris6ix ]
+authors: [ PotatoCraft Studio, Netherfoam, Timtower, KaiNoMood, Ghost_chu, Mgazul, TiaraRinne, sandtechnology, Starmism, Chris6ix, Rean Schwarzer ]
description: Economy Shops plugin
softdepend:
@@ -29,6 +29,8 @@ softdepend:
- FabledSkyblock
- OpenInv
- WorldEdit
+ - AdvancedRegionMarket
+ - ArmShopBridge
api-version: 1.13
@@ -39,6 +41,38 @@ commands:
aliases: [ qsshop,qshop,quickshop ]
permissions:
+ quickshop.player:
+ description: The permission that provide all player need have permissions
+ default: op
+ children:
+ quickshop.use: true
+ quickshop.create.sell: true
+ quickshop.create.buy: true
+ quickshop.create.stacks: true
+ quickshop.create.changeitem: true
+ quickshop.create.changeamount: true
+ quickshop.create.changeprice: true
+ quickshop.create.double: true
+ quickshop.create.cmd: true
+ quickshop.transfer: true
+ quickshop.find: true
+ quickshop.fetchmessage: true
+ quickshop.staff: true
+ quickshop.preview: true
+ quickshop.currency: true
+ quickshop.moderator:
+ description: The permission that provide all moderator need have permissions
+ default: op
+ children:
+ quickshop.other.destroy: true
+ quickshop.other.open: true
+ quickshop.other.price: true
+ quickshop.bypass.*: true
+ quickshop.alerts: true
+ quickshop.create.admin: true
+ quickshop.other.changeitem: true
+ quickshop.other.changeamount: true
+
quickshop.create.sell:
description: Allows a player to sell from a shop.
default: op