Merge remote-tracking branch 'origin/master'

This commit is contained in:
Ghost_chu committed 2021-08-02 16:11:43 +08:00
commit 02c5ca02fd
5 files changed
+15 -4

No files matched your search

@@ -1902,6 +1902,10 @@ public class QuickShop extends JavaPlugin {
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");
@@ -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:
+3 -1
View File
@@ -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: 138
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.
@@ -600,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!
+2 -2
View File
@@ -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": "59",
"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-mLine truncated
"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.",
@@ -115,7 +115,7 @@
"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": "&a/{0} {1} &e- {2}",
"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- §eLine truncated
"format-disabled": "&c/{0} {1} &7- {2}",
"toggle-unlimited": {
"unlimited": "&aLa tienda ahora es ilimitada.",