From 5b7565f07adc5c923699357fc899a89c3b71fe29 Mon Sep 17 00:00:00 2001 From: sandtechnology <20417547+sandtechnology@users.noreply.github.com> Date: Thu, 12 Aug 2021 00:19:56 +0800 Subject: [PATCH] New Release (#1410) * Added sign feature, solved #1155 * Fix WorldGuard Integration not work missing after reloading * New translations messages.json (Chinese Simplified) * New translations messages.json (Finnish) * Improved README with some HTML * Improved README with some HTML * Create 1 * Saved README icons locally to improve loading * Delete 1 * Some more improvements * Fix the compatibility of VirtualDisplayItem on 1.17.1 Fix #1264 * Fix the compatibility of VirtualDisplayItem on 1.17.1 Fix #1264 * Fix NullPointerException when creating shop * Add sign placement checking and improve sign change checking * Bump version * Bump ProtocolLib from 4.7.0-SNAPSHOT to 4.7.0 Bumps [ProtocolLib](https://github.com/dmulloy2/ProtocolLib) from 4.7.0-SNAPSHOT to 4.7.0. - [Release notes](https://github.com/dmulloy2/ProtocolLib/releases) - [Commits](https://github.com/dmulloy2/ProtocolLib/commits/4.7.0) --- updated-dependencies: - dependency-name: com.comphenix.protocol:ProtocolLib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Improve Ongoing Fee logic * Add missed allowLoan condition * Fix version comparing bug * Replace check to common sign * Format as tables * Delete unused spaceholder for icons * 4.0.9.5 (#1271) (#1274) * Update from release bunch (#1158) Co-authored-by: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> * New translations messages.json (Romanian) * New translations messages.json (Dutch) * New translations messages.json (Portuguese, Brazilian) * New translations messages.json (Vietnamese) * New translations messages.json (English) * New translations messages.json (Chinese Traditional) * New translations messages.json (Chinese Simplified) * New translations messages.json (Ukrainian) * New translations messages.json (Turkish) * New translations messages.json (Swedish) * New translations messages.json (Serbian (Cyrillic)) * New translations messages.json (Russian) * New translations messages.json (Portuguese) * New translations messages.json (Polish) * New translations messages.json (Norwegian) * New translations messages.json (Korean) * New translations messages.json (French) * New translations messages.json (Japanese) * New translations messages.json (Italian) * New translations messages.json (Hungarian) * New translations messages.json (Hebrew) * New translations messages.json (Finnish) * New translations messages.json (Greek) * New translations messages.json (German) * New translations messages.json (Danish) * New translations messages.json (Czech) * New translations messages.json (Catalan) * New translations messages.json (Arabic) * New translations messages.json (Afrikaans) * New translations messages.json (Spanish) * New translations messages.json (Chinese Traditional, Hong Kong) * New translations messages.json (Swedish) * New translations messages.json (Czech) * New translations messages.json (Norwegian) * New translations messages.json (Chinese Simplified) * New translations messages.json (Chinese Traditional) * Fix reloading after updated by /qs update * Stop reloading after updated by /qs update * Catching exception in reload command * New translations messages.json (Korean) * New translations messages.json (Korean) * New translations messages.json (Czech) * New translations messages.json (Turkish) * Fix loading timer issue * Add GroupManager check * Fix timer issue * New translations messages.json (Turkish) * New translations messages.json (Turkish) * New translations messages.json (Turkish) * New translations messages.json (Finnish) * New translations messages.json (Finnish) * debug vdisplay * debug vdisplay * Keep debugging * Only try convert packet * Only try convert packet * Prevent user reload quickshop after use command /qs update * Also cancel tasks when we setup boot error * Fix onCommand sound issue * Fix ArrayIndexOutOfBoundsException when having boot error * Fix ArrayIndexOutOfBoundsException in CommandManager * Fix bug in `fix bug` * Fix incorrect string calling * New translations messages.json (German) * Update maven.yml * bump version * fix maven conflict * New translations messages.json (Chinese Simplified) * Bump helper from 5.6.5 to 5.6.8 Bumps [helper](https://github.com/lucko/helper) from 5.6.5 to 5.6.8. - [Release notes](https://github.com/lucko/helper/releases) - [Commits](https://github.com/lucko/helper/commits) --- updated-dependencies: - dependency-name: me.lucko:helper dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Re-add outdated api methods to improve backward compatibility. Schedule removal in v5 * Add support for PlotSquared 6 (WIP) (#1208) * Add support for PlotSquared 6 (WIP) * Resolved package name conflicting by multiple projects * Fix build * Fix bug when using getShopWithCaching * New translations messages.json (Russian) * New translations messages.json (Russian) * Wrong JDK name fixed (#1226) Shouldn't this be JDK 16? (Because it says java-version: '16'...) * Extract shop loading out of loop, fixed #1151 * Allow all transparent block * New translations messages.json (Chinese Simplified) * move to async thread * Todo * Refactor to use EconomyTransaction * New translations messages.json (Japanese) * New translations messages.json (Spanish) * Fix shop sign is editable * Added sign feature, solved #1155 * Fix WorldGuard Integration not work missing after reloading * New translations messages.json (Chinese Simplified) * New translations messages.json (Finnish) * Fix the compatibility of VirtualDisplayItem on 1.17.1 Fix #1264 * Fix the compatibility of VirtualDisplayItem on 1.17.1 Fix #1264 * Fix NullPointerException when creating shop * Add sign placement checking and improve sign change checking * Bump version * Bump ProtocolLib from 4.7.0-SNAPSHOT to 4.7.0 Bumps [ProtocolLib](https://github.com/dmulloy2/ProtocolLib) from 4.7.0-SNAPSHOT to 4.7.0. - [Release notes](https://github.com/dmulloy2/ProtocolLib/releases) - [Commits](https://github.com/dmulloy2/ProtocolLib/commits/4.7.0) --- updated-dependencies: - dependency-name: com.comphenix.protocol:ProtocolLib dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Improve Ongoing Fee logic * Add missed allowLoan condition * Fix version comparing bug * Replace check to common sign Co-authored-by: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ghost_chu <2908803755@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris <65610536+Chris6ix@users.noreply.github.com> Co-authored-by: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ghost_chu <2908803755@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris <65610536+Chris6ix@users.noreply.github.com> * Fix #1275 * 4.0.9.6 * Fix NPE in 1.16- * Optimize the sign feature * 4.0.9.7 * New translations messages.json (Spanish) * fix: upgrade org.slf4j:slf4j-nop from 1.7.30 to 1.7.31 Snyk has created this PR to upgrade org.slf4j:slf4j-nop from 1.7.30 to 1.7.31. See this package in Maven Repository: https://mvnrepository.com/artifact/org.slf4j/slf4j-nop/ See this project in Snyk: https://app.snyk.io/org/ghost-chu/project/7c33ca23-034e-4a8d-a855-67eab090487d?utm_source=github&utm_medium=upgrade-pr * Added downloads counter and rating (Spigot) * Remove useless synchronized operation * Bump placeholderapi from 2.10.9 to 2.10.10 Bumps placeholderapi from 2.10.9 to 2.10.10. --- updated-dependencies: - dependency-name: me.clip:placeholderapi dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Add todo * Allow user format the help list * New translations messages.json (Japanese) * New translations messages.json (Korean) * New translations messages.json (Portuguese, Brazilian) * New translations messages.json (Vietnamese) * New translations messages.json (English) * New translations messages.json (Chinese Traditional) * New translations messages.json (Ukrainian) * New translations messages.json (Turkish) * New translations messages.json (Swedish) * New translations messages.json (Serbian (Cyrillic)) * New translations messages.json (Russian) * New translations messages.json (Portuguese) * New translations messages.json (Polish) * New translations messages.json (Norwegian) * New translations messages.json (Dutch) * New translations messages.json (Italian) * New translations messages.json (Chinese Simplified) * New translations messages.json (Hungarian) * New translations messages.json (Hebrew) * New translations messages.json (Greek) * New translations messages.json (German) * New translations messages.json (Danish) * New translations messages.json (Czech) * New translations messages.json (Catalan) * New translations messages.json (Arabic) * New translations messages.json (Afrikaans) * New translations messages.json (French) * New translations messages.json (Romanian) * New translations messages.json (Finnish) * New translations messages.json (Spanish) * New translations messages.json (Chinese Traditional, Hong Kong) * [ImgBot] Optimize images *Total -- 68.30kb -> 56.07kb (17.9%) /.github/icons/MCBBS.png -- 29.44kb -> 23.04kb (21.74%) /.github/icons/Jenkins.svg -- 29.10kb -> 23.76kb (18.37%) /.github/icons/Github.png -- 1.32kb -> 1.22kb (7.91%) /.github/icons/Bukkit.png -- 6.50kb -> 6.12kb (5.74%) /.github/icons/Discord.svg -- 1.94kb -> 1.94kb (0.2%) Signed-off-by: ImgBotApp * New translations messages.json (English) * Impl GriefPrevention integration#delete-on-unclaim and delete-on-claim-expired * Add new contributor * Bump commons-compress from 1.20 to 1.21 Bumps commons-compress from 1.20 to 1.21. --- updated-dependencies: - dependency-name: org.apache.commons:commons-compress dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Bump spigot-api from 1.17-R0.1-SNAPSHOT to 1.17.1-R0.1-SNAPSHOT Bumps spigot-api from 1.17-R0.1-SNAPSHOT to 1.17.1-R0.1-SNAPSHOT. --- updated-dependencies: - dependency-name: org.spigotmc:spigot-api dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Fixed shop delete bypassing in previous commit * Eliminated duplicated Code. Changed variables names. Fixed problem with the Grief Prevention untrust handler (it would remove shops that were not related to the claim that someone untrusted other person). Reverted changes made by Ghost_chu that wouldn't make sense in the context of GriefPrevention (now when a claim is unclaimed or expired all shops inside it will me deleted as well). * Delete semgrep.yml * New translations messages.json (Danish) * Changed code in the event handler of unclaimed/expired claim to consider subclaims. Fixed more problems in the event handler of untrusted claim to consider subclaims. Also removed the code event.isGiven() because if the player changes the trust permission from one greater level to another lower level, it does not consider as untrust, so it happens problems. Refactored the previous event because of the problems of the return statements inside loops. * Implemented event listener to delete shops if they are outside a Grief Prevention claim when the claim is resized/shrinked. * Bump LandsAPI from 5.10.2 to 5.12.1 Bumps [LandsAPI](https://github.com/Angeschossen/LandsAPI) from 5.10.2 to 5.12.1. - [Release notes](https://github.com/Angeschossen/LandsAPI/releases) - [Commits](https://github.com/Angeschossen/LandsAPI/compare/5.10.2...5.12.1) --- updated-dependencies: - dependency-name: com.github.angeschossen:LandsAPI dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Re-add another missing deprecated API, some addon still use it * Re-add another missing deprecated API, some addon still use it * Add built-in AdvancedRegionMarket integration * Fix the language guessing when it is English * Fix an rare case when running task before setting variable Fix #1310 * Fix wording * Fix Integration with AdvancedShopRegionMarket * Default false * spelling * Bump LandsAPI from 5.12.1 to 5.12.2 Bumps LandsAPI from 5.12.1 to 5.12.2. --- updated-dependencies: - dependency-name: com.github.angeschossen:LandsAPI dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * New translations messages.json (Chinese Traditional, Hong Kong) * Merge two if statements which is the same, fix #1324 * Closed #1318 * Add dynamic economy setup listener, change economy failure from HARD FAIL to SOFT FAIL * Fix #1318 properly * Fix ghost shop bug * Big improvements to the Grief Prevention Integration. Fixed some bugs. Refactored some things. * Deleted some features/validation because of some problems found. * Full async * Fix build error * Prevent memory leak * Fix build error * Fix more build errors * Don't cancel handler * Minor fix in the trust changed event. * update configuration * Make QSEvent can set async or sync * New translations messages.json (Dutch) * Only show optional args while player hands is empty to prevent confusing the players * Removed synchronized mark * Remove useless clone calls * Close #1339, Cleanup timerTaskList while plugin disabling * Fixed #1321, fixed QuickShop won't update the cache files when server upgraded * For newer Minecraft versions, use isAir to instead * Use timerTaskList in onEnable * mistake * Edit the document part: Contribute * New translations messages.json (Dutch) * Fix README * Fix readme * Improved the Grief Prevention Integration by changing the config file. * Fixed #1351, Try search the quickshop jar if old jar not found * Add more details while loading shops * Force shop database updating in async thread * Prevent multi updates while shop loading * Cleanup * Thread-safe update0() method * update0 actually can safety executing on any threads * try to resolve npe issue * Fix npe while disabling * Improve shop loading and logging * Fix duplicated updating correctly, fix error on plugin disable * Use the right set implementation * Fix wording * Fixed/Changed some things, in order for the pull request to be approved. * Fix VirtualDisplayItem disappear bug * Fix another display disappear bug * Bump LandsAPI from 5.12.2 to 5.12.7 Bumps [LandsAPI](https://github.com/Angeschossen/LandsAPI) from 5.12.2 to 5.12.7. - [Release notes](https://github.com/Angeschossen/LandsAPI/releases) - [Commits](https://github.com/Angeschossen/LandsAPI/compare/5.12.2...5.12.7) --- updated-dependencies: - dependency-name: com.github.angeschossen:LandsAPI dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Do not load chunk in shop init process and deduplicate loading, fix #1360 * Tweak calling event to before loading, save resources * Big changes/improvements/bug fixes to the Grief Prevention Integration (#1352) * Big improvements to the Grief Prevention Integration. Fixed some bugs. Refactored some things. * Deleted some features/validation because of some problems found. * Minor fix in the trust changed event. * Improved the Grief Prevention Integration by changing the config file. * Fixed/Changed some things, in order for the pull request to be approved. Co-authored-by: 1171066 <1171066@isep.ipp.pt> * Added whitelist-mode option to Towny Integration in the config file * New translations messages.json (Spanish) * New translations messages.json (Spanish) * Use sync packet adapter, but it still fast enough * Modify the config.yml * Fix the merge issues * Fix Minedown format issue * Revert "Fix the merge issues" This reverts commit f7d6f84a3bcacab8c74e80770dfa03bf58ee49be. * Revert "Modify the config.yml" This reverts commit 4d8bcdb7b5d592c4b45a5fd6a4deb777fcc73ad4. * New translations messages.json (Portuguese, Brazilian) * New translations messages.json (Portuguese, Brazilian) * Use shared packetAdapter to prevent busy collection inside of ProtocolLib to hurt the server TPS * Don't load chunks in init * Tweaking determine order for save cpu time * New translations messages.json (Chinese Traditional) * Bump VaultAPI from 1.7 to 1.7.1 Bumps [VaultAPI](https://github.com/MilkBowl/VaultAPI) from 1.7 to 1.7.1. - [Release notes](https://github.com/MilkBowl/VaultAPI/releases) - [Commits](https://github.com/MilkBowl/VaultAPI/compare/1.7...1.7.1) --- updated-dependencies: - dependency-name: com.github.MilkBowl:VaultAPI dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Let MineDown translate all color code when loading message Fix sign color issue, revert ef07390a * Minor fix to a bug related to the TrustChangedEvent of GriefPrevention Integration (#1381) Co-authored-by: 1171066 <1171066@isep.ipp.pt> * Fix broken messages, support minedown format * Fix broken help command * Minor Fix in GriefPrevention Integration (#1382) * Minor fix to a bug related to the TrustChangedEvent of GriefPrevention Integration * Deleted a part of code that was supposed to be deleted Co-authored-by: 1171066 <1171066@isep.ipp.pt> * Fix broken VirtualDisplayItem * Fix build * Fix NPE * Do not load the chunks while getting stats * Add all-in-one permission node quickshop.player - all players permissions need to grant quickshop.moderator - all moderator permissions need to grant for admins, you just need give them quickshop.* and all should be works * Only clean and count loaded shops * New translations messages.json (Swedish) * #1406 ItemConfig column: utf8mb4 encoding for mysql * Using ThreadLocal for preventing concurrent issue * Fix an NPE issue, unload when actually loaded * Lazy initialize decimalFormat value, fix format issue * Bump LandsAPI from 5.12.7 to 5.13.0 (#1393) Bumps [LandsAPI](https://github.com/Angeschossen/LandsAPI) from 5.12.7 to 5.13.0. - [Release notes](https://github.com/Angeschossen/LandsAPI/releases) - [Commits](https://github.com/Angeschossen/LandsAPI/compare/5.12.7...5.13.0) --- updated-dependencies: - dependency-name: com.github.angeschossen:LandsAPI dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump PlotSquared-Core from 6.0.0-SNAPSHOT to 6.0.8-SNAPSHOT (#1392) Bumps PlotSquared-Core from 6.0.0-SNAPSHOT to 6.0.8-SNAPSHOT. --- updated-dependencies: - dependency-name: com.plotsquared:PlotSquared-Core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump version * Optimize timerTaskList iterating * Remove redundant getter for timerTaskList * Revert "Fixed #1351, Try search the quickshop jar if old jar not found" This reverts commit 5b4530f8276ac77d33b255d303fff469c39e8d92. * Remove redundant info message and variable in Info command * Fix resource leaking and bug in MojangGameLanguageImpl * Optimize VirtualDisplayItemManager * Optimize AdvancedShopRegionMarketIntegration * Use thread-safe list * [VirtualDisplayItem] Huge improve performance * Remove duplicated loading for i18nFile Co-authored-by: Ghost_chu <2908803755@qq.com> Co-authored-by: Chris <65610536+Chris6ix@users.noreply.github.com> Co-authored-by: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: snyk-bot Co-authored-by: ImgBotApp Co-authored-by: 1171066 <1171066@isep.ipp.pt> Co-authored-by: raphtaliapt <64327988+raphtaliapt@users.noreply.github.com> --- .github/icons/Bukkit.png | Bin 0 -> 6270 bytes .github/icons/Discord.svg | 1 + .github/icons/Github.png | Bin 0 -> 1245 bytes .github/icons/Jenkins.svg | 1 + .github/icons/MCBBS.png | Bin 0 -> 23594 bytes .github/icons/Spigot.png | Bin 0 -> 15995 bytes .github/workflows/semgrep.yml | 18 - README.md | 49 +-- pom.xml | 28 +- .../org/maxgamer/quickshop/QuickShop.java | 89 +++-- .../org/maxgamer/quickshop/api/ShopAPI.java | 6 + .../platform/minedown/BungeeQuickChat.java | 7 +- .../command/subcommand/SubCommand_Clean.java | 3 +- .../subcommand/SubCommand_CleanGhost.java | 2 +- .../command/subcommand/SubCommand_Create.java | 24 +- .../command/subcommand/SubCommand_Help.java | 61 +-- .../command/subcommand/SubCommand_Info.java | 23 +- .../command/subcommand/SubCommand_Update.java | 2 +- .../quickshop/database/DatabaseHelper.java | 11 +- .../quickshop/database/DatabaseManager.java | 6 +- .../org/maxgamer/quickshop/event/QSEvent.java | 8 + .../quickshop/event/ShopUpdateEvent.java | 1 + .../integration/IntegrationHelper.java | 9 +- .../AdvancedShopRegionMarketIntegration.java | 168 ++++++++ .../GriefPreventionIntegration.java | 373 +++++++++++++----- .../integration/towny/TownyIntegration.java | 5 + .../listener/EconomySetupListener.java | 37 ++ .../quickshop/shop/ContainerShop.java | 54 +-- .../quickshop/shop/RealDisplayItem.java | 28 +- .../maxgamer/quickshop/shop/ShopLoader.java | 39 +- .../maxgamer/quickshop/shop/ShopManager.java | 7 +- .../quickshop/shop/VirtualDisplayItem.java | 226 ++++++----- .../quickshop/util/AsyncPacketSender.java | 114 ------ .../org/maxgamer/quickshop/util/MsgUtil.java | 29 +- .../org/maxgamer/quickshop/util/Util.java | 34 +- .../language/game/MojangGameLanguageImpl.java | 25 +- .../reporter/error/RollbarErrorReporter.java | 2 +- src/main/resources/config.yml | 55 ++- .../resources/lang-original/messages.json | 4 +- src/main/resources/lang/af-ZA/messages.json | 4 +- src/main/resources/lang/ar-SA/messages.json | 4 +- src/main/resources/lang/ca-ES/messages.json | 4 +- src/main/resources/lang/cs-CZ/messages.json | 4 +- src/main/resources/lang/da-DK/messages.json | 6 +- src/main/resources/lang/de-DE/messages.json | 4 +- src/main/resources/lang/el-GR/messages.json | 4 +- src/main/resources/lang/en-US/messages.json | 8 +- src/main/resources/lang/es-ES/messages.json | 6 +- src/main/resources/lang/fi-FI/messages.json | 4 +- src/main/resources/lang/fr-FR/messages.json | 4 +- src/main/resources/lang/he-IL/messages.json | 4 +- src/main/resources/lang/hu-HU/messages.json | 4 +- src/main/resources/lang/it-IT/messages.json | 4 +- src/main/resources/lang/ja-JP/messages.json | 4 +- src/main/resources/lang/ko-KR/messages.json | 4 +- src/main/resources/lang/nl-NL/messages.json | 30 +- src/main/resources/lang/no-NO/messages.json | 4 +- src/main/resources/lang/pl-PL/messages.json | 4 +- src/main/resources/lang/pt-BR/messages.json | 52 +-- src/main/resources/lang/pt-PT/messages.json | 4 +- src/main/resources/lang/ro-RO/messages.json | 4 +- src/main/resources/lang/ru-RU/messages.json | 6 +- src/main/resources/lang/sr-SP/messages.json | 4 +- src/main/resources/lang/sv-SE/messages.json | 16 +- src/main/resources/lang/tr-TR/messages.json | 4 +- src/main/resources/lang/uk-UA/messages.json | 4 +- src/main/resources/lang/vi-VN/messages.json | 4 +- src/main/resources/lang/zh-CN/messages.json | 4 +- src/main/resources/lang/zh-HK/messages.json | 12 +- src/main/resources/lang/zh-TW/messages.json | 16 +- src/main/resources/plugin.yml | 36 +- 71 files changed, 1158 insertions(+), 667 deletions(-) create mode 100644 .github/icons/Bukkit.png create mode 100644 .github/icons/Discord.svg create mode 100644 .github/icons/Github.png create mode 100644 .github/icons/Jenkins.svg create mode 100644 .github/icons/MCBBS.png create mode 100644 .github/icons/Spigot.png delete mode 100644 .github/workflows/semgrep.yml create mode 100644 src/main/java/org/maxgamer/quickshop/integration/advancedregionmarket/AdvancedShopRegionMarketIntegration.java create mode 100644 src/main/java/org/maxgamer/quickshop/listener/EconomySetupListener.java delete mode 100644 src/main/java/org/maxgamer/quickshop/util/AsyncPacketSender.java diff --git a/.github/icons/Bukkit.png b/.github/icons/Bukkit.png new file mode 100644 index 0000000000000000000000000000000000000000..e1d9d0f0c967109da3f478475d7273d3c9b713c8 GIT binary patch literal 6270 zcmcgw2UHW=x{inx5kZB6A_96q480>YfFgt{F(DuX#RL=tkx)YyR1~Bbf`AApB$Oba zbV5@UkgkN@qS6xxO$ar-xbAuPl>6?x@7=f7+cUHNwP(-lwP(KXFW-KA+0vNzpzuKe z0Kf}2xd;IO_9gthxHwpM!W+~(Scd(kfrSA8@HU=j$LRp8FOD>USO5TlXIW3&2LQHy zJ~;~j_$mSb)aw9%Rtf+hboT|xT8A~jal_2`B4F?5@v<&Aku{P8zGwgq7+x5&e}Wi5 zv@BD?3hTO^?{p1Lc+H>pI7a4&^xQuOu8uYY`kxatH00uD7dU+y3YC!7f3$L6`aa-s zM1Wx#pUyJ>Il;0A5P68qEwjY$6?fA4bE`Lwwk!v@biJr!Y^~mHwuGt0@yviSR91IQ zT3X3Nx0sfb0(~H{l7Q!NG0~|?&XP=Fn0`QlV%2d@Ff7_F+v@DixfT_b*Nd! z1PEIU+uPo|*dv_%HVk^`J+ri=WTm3Ix>^h`RxFax)MUiVvAu;R-&)GQ zlFN+zA}&7oVKk(GrgbENMk85zj1WES+0gq;Qdz7W98NKj%oPh(0|S7CqU7XhL8QoNDr)Ml~KrN*kfW<_J|6 zI+xCa<&({ZS?z}35&qgINl8hI#}7vtkJb75r? z3$p8n<(pJRB-XZb-n4sQhd2CCi5;>z67qd@raT1&jL`Pw3C44~jHXQw7e^RuZ?ZK} zOf!tRAs9o=G@;o1EVqt$HBNRbh3p91{;ss)V zktlTE3roOZQ9${JN%$7QEvJ&8FO7{69J|bQN2e{J;LioV&fY&V3X9IAbJQMf!<<2qoZp-cCZEe+!4g2rpK33Qq0gPK}|9s&M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K-w>~{@Bpo%U2093T<^y^UXKwElg?lZ9`C5V2#!8VHK6B7fBF^sh8Lb zJPzgZI))v!)jY8r=7X5QHXm8M))5SSzG-!s9$d9Hw}Z;QAC7JdrpD^zRD2pU-*;h)s?$<-&tOA(Qi6Sqq8f75^*xxk{xNg@tN6xp!avBh6g9yM zZyKsCnTp$osJ=H*iJ7zf_8i?X(@{+jv!ckBNft#?4x+L3^HC)T%Yrwp0bGvJ~(bK{yc z=i@cM(H#!4+^Sl}9Eh+#e#O+O#RLeP(IM9)yjU%V_u4L`rul6@?_L=N+(k08258mz z1b735FK97sxlMC1fAw(yYmZg07{wW}`<1!92vR(L2x`i``^ib+YtW06ltSID*=$Bp zaWSa*7C-;I6YKMu8e@QZsykxYm#wwpi z(!3NAem!2>pFVm`PEIaFp3ti(ys;-uI5(p+I64}P`vUkk+r0B0PXODI#~fifwX7*5 zeT-~rMp02qQPF5PIrUF3czB{*T`>Rr U1=T18$)Ae^8(Cf~GQ1w~AA!Zp-2eap literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..6dcb298eef70478921da2695f176149e8e2f2293 GIT binary patch literal 1245 zcmV<31S0#1P)004R>004l5008;`004mK004C`008P>0026e000+ooVrmw00002 zVoOIv0RM-N%)bBt00(qQO+^Rg2Mi4x0w z6}u2^i;`9sWs0-0GGSw*i?V+sXoJNXTSzp>3vsfG+Q34oHequ(Tv13DLXjo}G1iqu z5L;|(v#78|_D2R*OPw8kyD*RE)%W+j&-=X3sTk+?+@14&zvpw_=il%7J&=e*B;v)5 zMSMsdZJgmEJ=~<53!I{nO3Ik_EJ3ETo>p$-DB43h+0N|v!xYfSeI-h48{{Y};|DXJ zRz|d8CfaGI-v&EzwC{?(zLCUeX6@^8ASfuH~SH#|oSu zU2`eV^O+W1oW&m9<=`-DO1GY)jL7ONSf^Ct89wk z*r6j{Dt1GbF;JH1S?VvAw~AMdf#!;yhy0{D42fd%tfo}-eB`&0e59B;HO4^I3fE7~ z2DHOt%8h|mDwc?Lb+Yk56n+sZjj0iR?~^9WmWi^!P8aPO8Se+iOBmTCds?!Cc# zIok?Qw&4D+Ea`qOKoME;n;?133eZBaQXhqJ1ys_(u!hqw{{Jh_RZ)DCOg{0GON;vRCWb<2XFz8(!fBiDZi6_hu52h(!Ev;t7rAJWg!{l?VU; z03~!qSaf7zbY(hYa%Ew3WdJfTGBGVMH!U$TR53F;G%z|eFe@-HIxsLr+LxIC001R) zMObuXVRU6WZEs|0W_bWIFfuVMFgGnRGE^}$Iy5jkG%zbLFgh?WG>0!G00000NkvXX Hu0mjfM>8v- literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..2ccaedaf6406151b04f774c9071147e642c3fc4e GIT binary patch literal 23594 zcmW(+1yoes76$3=PRXIWOS&XRa_H{v20^-{8w8{gq!~JtZlp`PTe{x;-(p>A7H~QD zoV~x=(dw%57^tMEFfcF}iV8BHU|?X0fX|JQ5rOx8wPB{f2Y72q6-gMFx)PU1EWu_C?l!qvwWK8ok^~fb{m`~qIzecf;j@Ix6ns{B)j*x!QjpFo0|3#6OQ3} zLAa}z=rcQr;jFk!(3@e&_Cp%jRz`$WC!p4)?&ar+l{JU+|GrQv(q^gc`yO4It9Z`+ zsPvx{+ZWsKke~9*YjD$^7=Z{a(c}jrSnpQnrZtTG|Gk?w6!_dt`}K`bXjTF>)P?yR ziVcGKf=7I9^bIeQ)x?ASFCwnB!~^8v?L$$IYELk;GxvL=s^iDhO;9?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uZe(QS`r*Te-?VLeUNW(oK=7`_ z5lH{}-&^g(i4&#_X=5VSH~?VHx1#_sjsNz2zj*4@sdEz(69;jcn`xRj+uVj7WX{3% zP&7{Ca@+0prt7*@*L64R_4?-S-Md!?2M6Z{1_mz6jK?*-L&=Wjzs>aAJ~Q9PQX|kN z9Ir`Gp>B3CQ|-wopWHJ)KfiMR{2Lc6%d~CVN!zxSNvBgOgOU^>%rZ@bI<`Y`#+K)K z42X$Kg0|getK|nltKDif{iu1<)6*LxBO}#9p|EIK*0TJ~s>Z}hQg|xc@7;*%_Q8B_ zOO1vE)`H9>=h97A*tc(AYGPty2>r}Bcd^}WH#?n9z0<+@vRKz4U}4zgataqWO~P&4 z4$I{-&J4nNhYicJHf`HpCxom^;BIIv?8ZPGyc=xXml^lI)G(wsLrqcJB_+qG%yllv zzgw}{K_r%%voC?AlF2%9qC-i#?9{X` zeU^|eRpOPa+6nUxU2XoM4q*RIg18Un`$KAUB-=9ix~5IURdW@M9?ZL p8XolW2fW98M1Ahz`zGJ~zXKemsK|pd8NmPm002ovPDHLkV1hPU5tRS{ literal 0 HcmV?d00001 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 @@ ![Contributors](https://img.shields.io/github/contributors/Ghost-chu/QuickShop-Reremake) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake?ref=badge_shield) --- -[![JoinDiscord](https://img.shields.io/badge/join-discord-blue.svg) ![Chatting](https://img.shields.io/discord/471882534712639488)](https://discord.gg/bfefw2E) -![Java](https://img.shields.io/badge/java-version%208%2B%20(currently%20is%208--17)-orange) +![Java](https://img.shields.io/badge/java-version%208%2B%20(currently%20is%208--16)-orange) ![MC](https://img.shields.io/badge/minecraft-java%20edition%201.13.2%2B-blueviolet) ![Ver](https://img.shields.io/spiget/version/62575?label=version) +![Downloads](https://img.shields.io/spiget/downloads/62575?label=downloads) +![Rating](https://img.shields.io/spiget/rating/62575?label=rating) --- 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 -![Bstats-Servers](https://img.shields.io/bstats/servers/3320) -![Bstats-Players](https://img.shields.io/bstats/players/3320) - [![BigImage](https://bstats.org/signatures/bukkit/QuickShop-Reremake.svg)](https://bstats.org/plugin/bukkit/QuickShop-Reremake/3320) - - ## License + [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FGhost-chu%2FQuickShop-Reremake.svg?type=large)](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.8 org.maxgamer.quickshop Ghost-chu UTF-8 @@ -418,7 +418,7 @@ org.apache.commons commons-compress - 1.20 + 1.21 com.griefcraft.lwc @@ -470,7 +470,7 @@ com.github.MilkBowl VaultAPI - 1.7 + 1.7.1 provided @@ -546,7 +546,7 @@ me.clip placeholderapi - 2.10.9 + 2.10.10 provided @@ -558,7 +558,7 @@ com.github.angeschossen LandsAPI - 5.10.2 + 5.13.0 provided @@ -609,7 +609,7 @@ org.spigotmc spigot-api - 1.17-R0.1-SNAPSHOT + 1.17.1-R0.1-SNAPSHOT provided @@ -701,7 +701,7 @@ com.plotsquared PlotSquared-Core - 6.0.0-SNAPSHOT + 6.0.8-SNAPSHOT provided @@ -890,7 +890,7 @@ org.slf4j slf4j-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