Skip to content

Commit 6dd85ae

Browse files
authored
Merge pull request Ghost-chu#1576 from Ghost-chu/master
5.0.0.10
2 parents c039da8 + e5de2c5 commit 6dd85ae

File tree

10 files changed

+52
-54
lines changed

10 files changed

+52
-54
lines changed

crowdin/lang/de-DE/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,6 @@
346346
"display-turn-on": "&aShopanzeige erfolgreich aktiviert.",
347347
"display-turn-off": "&aShopanzeige erfolgreich deaktiviert.",
348348
"shop-purged-start": "&aShop-Löschung gestartet. Überprüfe die Konsole für details.",
349-
"purchase-out-of-stock": "&cThis shop run out of the stock, Contact shop owner or staffs to refill the stock.",
350-
"purchase-out-of-space": "&cThis shop run out of the space, Contact shop owner or staffs to empty the shop."
349+
"purchase-out-of-stock": "&cDieser Shop hat keine Items mehr. Kontaktiere den Shopeigentümer oder Shop-Mitarbeiter um den Bestand wieder aufzufüllen.",
350+
"purchase-out-of-space": "&cDieser Shop hat keinen Platz mehr. Kontaktiere den Shopeigentümer oder Shop-Mitarbeiter damit er geleert wird."
351351
}

crowdin/lang/en-US/messages.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,28 +67,28 @@
6767
"nothing-to-flush": "&aYou have no new shop messages.",
6868
"break-shop-use-supertool": "&eYou can break the shop by using the SuperTool.",
6969
"failed-to-put-sign": "&cNot enough space around the shop to place the info sign.",
70-
"failed-to-paste": "&cFailed to upload the data to Pastebin. Check your internet connection and try again. (See console for details)",
71-
"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.",
72-
"price-too-high": "&cThe shop price is too high! You cannot create one with a price higher than {0}.",
73-
"you-cant-create-shop-in-there": "&cYou don't have permission to create a shop at this location.",
70+
"failed-to-paste": "&cFailed to upload the data to pastebin. Check your internet connection and try again. (See console for details)",
71+
"warn-to-paste": "&eCollecting data and uploading 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.",
72+
"price-too-high": "&cThe shop price is too high! You cannot create a shop with a price higher than {0}.",
73+
"you-cant-create-shop-in-there": "&cYou don't have permissions to create a shop at this location.",
7474
"unknown-player": "&cTarget player doesn't exist, please check the username you typed.",
7575
"shop-staff-cleared": "&aSuccessfully removed all staff members from your shop.",
76-
"shop-staff-added": "&aSuccessfully added {0} as a staff member for your shop.",
77-
"shop-staff-deleted": "&aSuccessfully removed {0} as a staff member for your shop.",
76+
"shop-staff-added": "&aSuccessfully added {0} as a staff member to your shop.",
77+
"shop-staff-deleted": "&aSuccessfully removed {0} as a staff member from your shop.",
7878
"no-permission-build": "&cYou cannot build a shop here.",
7979
"success-change-owner-to-server": "&aSuccessfully set the shop owner to Server.",
80-
"flush-finished": "&aSuccessfully flushed the messages.",
80+
"flush-finished": "&aSuccessfully cleared recent messages.",
8181
"purchase-failed": "&cPurchase failed: Internal Error. Please contact the Server Administrator.",
82-
"no-pending-action": "&cYou do not have any pending actions",
83-
"permission-denied-3rd-party": "&cPermission denied: 3rd Party Plugin [{0}].",
84-
"shops-removed-in-world": "&eTotal &b{0}&e shops has been deleted in world &b{1}&e.",
82+
"no-pending-action": "&cYou don't have any pending actions",
83+
"permission-denied-3rd-party": "&cPermission denied by 3rd-party Plugin {0}.",
84+
"shops-removed-in-world": "&eA total of &b{0}&e shops have been deleted in world &b{1}&e.",
8585
"world-not-exists": "&cThe world &e{0}&c doesn't exist",
8686
"menu": {
8787
"successful-purchase": "&aSuccessfully purchased:",
8888
"successfully-sold": "&aSuccessfully sold:",
8989
"item-name-and-price": "&e{0} {1} &afor &e{2}",
9090
"sell-tax": "&aYou paid &e{0} &ain taxes.",
91-
"sell-tax-self": "&aYou didn't pay taxes because you own this shop.",
91+
"sell-tax-self": "&aYou didn't had to pay taxes because you own this shop.",
9292
"enchants": "&5Enchantments",
9393
"stored-enchants": "&5Stored Enchantments",
9494
"shop-information": "&aShop Information:",
@@ -97,7 +97,7 @@
9797
"item-holochat-error": "&c[Error]",
9898
"preview": "&b[Item Preview]",
9999
"space": "&aSpace: &e{0}",
100-
"stock": "&aStock &e{0}",
100+
"stock": "&aStock: &e{0}",
101101
"price-per": "&aPrice per &e{0} &a- &e{1}",
102102
"price-per-stack": "&aPrice per &e{2}x {0} - {1}",
103103
"total-value-of-chest": "&aTotal value of chest: &e{0}",
@@ -110,12 +110,12 @@
110110
"bypassing-lock": "&cBypassing a QuickShop lock!",
111111
"that-is-locked": "&cThis shop is locked.",
112112
"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.",
113-
"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.",
113+
"how-many-sell": "&aEnter in chat, how many you wish to &dSELL&a. You can buy &e{0}&a. Enter &ball&a to buy them all.",
114114
"not-allowed-to-create": "&cYou may not create a shop here.",
115115
"blacklisted-item": "&cYou cannot sell this item because it is on the blacklist",
116116
"how-much-to-trade-for": "&aEnter in chat, how much you wish to trade &e{1}x {0}&a for.",
117117
"command": {
118-
"format": "&a/{0} {1} &e- {2}",
118+
"format": "&a{0} {1} &e- {2}",
119119
"format-disabled": "&c/{0} {1} &7- {2}",
120120
"toggle-unlimited": {
121121
"unlimited": "&aShop is now unlimited",

crowdin/lang/pl-PL/messages.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"lock": "&eZmień status blokady sklepu",
180180
"taxaccount": "&eUstaw konto podatkowe, które sklep ma używać",
181181
"toggledisplay": "&ePrzełącz stan wyświetlania przedmiotu w sklepie",
182-
"purge": "&eStart the shop purge task in background"
182+
"purge": "&eUruchom zadanie czyszczenia sklepu w tle"
183183
},
184184
"disabled": "&cTa komenda jest wyłączona: &e{0}",
185185
"feature-not-enabled": "Ta funkcja nie jest włączona w pliku konfiguracyjnym."
@@ -229,8 +229,8 @@
229229
"lock-hover": "&eWłącz/Wyłącz ochronę blokady sklepu.",
230230
"freeze": "&eTryb zamrożenia: &b{0} &e[&d&lPrzełącz&e]",
231231
"freeze-hover": "&ePrzełącz status zamrożenia sklepu.",
232-
"toggledisplay": "&eDisplayItem: &b{0} &e[&d&lToggle&e]",
233-
"toggledisplay-hover": "&eToggle the shop's displayitem status"
232+
"toggledisplay": "&eWyświetlacz Przedmiotu: &b{0} &e[&d&lPrzełącz&e]",
233+
"toggledisplay-hover": "&ePrzełącz status wyświetlania przedmiotu w sklepie"
234234
},
235235
"tableformat": {
236236
"full_line": "+---------------------------------------------------+",
@@ -346,6 +346,6 @@
346346
"display-turn-on": "&aPomyślnie włączono wyświetlacz sklepu.",
347347
"display-turn-off": "&aPomyślnie wyłączono wyświetlacz sklepu.",
348348
"shop-purged-start": "&aRozpoczęto czyszczenie sklepu, sprawdź konsolę, aby uzyskać szczegółowe informacje.",
349-
"purchase-out-of-stock": "&cThis shop run out of the stock, Contact shop owner or staffs to refill the stock.",
350-
"purchase-out-of-space": "&cThis shop run out of the space, Contact shop owner or staffs to empty the shop."
349+
"purchase-out-of-stock": "&cW tym sklepie skończyły się zapasy, skontaktuj się z właścicielem sklepu lub personelem, aby uzupełnić zapasy.",
350+
"purchase-out-of-space": "&cW tym sklepie zabrakło miejsca, skontaktuj się z właścicielem sklepu lub personelem, aby opróżnić sklep."
351351
}

crowdin/lang/sv-SE/messages.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"lock": "&eVäxla butikens låsstatus",
180180
"taxaccount": "&eAnge skattekontot som butiken använder",
181181
"toggledisplay": "&eVäxla butikens status för visningsobjekt",
182-
"purge": "&eStart the shop purge task in background"
182+
"purge": "&aStarta rensningsuppgifter för butiker i bakgrunden"
183183
},
184184
"disabled": "&cDetta kommando är inaktiverat: &e{0}",
185185
"feature-not-enabled": "Funktionen är inte aktiverad i konfigurationsfilen."
@@ -229,8 +229,8 @@
229229
"lock-hover": "&eAktivera/Inaktivera butikens låsskydd.",
230230
"freeze": "&eFryst läge: &b{0} &e[&d&lVäxla&e]",
231231
"freeze-hover": "&eVäxla butikens frysningsstatus.",
232-
"toggledisplay": "&eDisplayItem: &b{0} &e[&d&lToggle&e]",
233-
"toggledisplay-hover": "&eToggle the shop's displayitem status"
232+
"toggledisplay": "&eVisningsföremål: &b{0} &e[&d&lVäxla&e]",
233+
"toggledisplay-hover": "&eVäxla butikens status för visningsföremålet"
234234
},
235235
"tableformat": {
236236
"full_line": "+---------------------------------------------------+",
@@ -346,6 +346,6 @@
346346
"display-turn-on": "&aLyckades aktivera butiksdisplayen.",
347347
"display-turn-off": "&aLyckades aktivera butiksdisplayen.",
348348
"shop-purged-start": "&aShop rensning startade, kontrollera konsolen för detaljer.",
349-
"purchase-out-of-stock": "&cThis shop run out of the stock, Contact shop owner or staffs to refill the stock.",
350-
"purchase-out-of-space": "&cThis shop run out of the space, Contact shop owner or staffs to empty the shop."
349+
"purchase-out-of-stock": "&cDenna butik har slut på lagret, Kontakta butiksägare eller personal för att fylla på lagret.",
350+
"purchase-out-of-space": "&cDenna butik har slut på tillgängligt utrymme, Kontakta butiksägare eller personal för att tömma butiken."
351351
}

crowdin/lang/tr-TR/messages.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"now-buying": "&aŞimdi &e{0} &dALIYOR",
130130
"now-selling": "&aŞimdi &e{0} &bSATILIYOR",
131131
"cleaning": "&aStoksuz marketler kaldırılıyor...",
132-
"reloading": "&aConfiguration reloaded. &eSome changes may require reboot to affect. \n&7(Notice: Reloading behavior has been changed after 4.0.9.10, we now only reload configuration but not whole plugin to ensure the server won't crashed.)",
132+
"reloading": "&aYapılandırma yeniden yüklendi. &eBazı değişikliklerin etki etmesi için yeniden başlatma gerekebilir. \\n&7(Yeniden yükleme davranışı 4.0.9.10'dan sonra değiştirildi. Sunucunun çökmemesi için artık sadece yapılandırmayı yeniden yüklüyoruz, tüm eklentiyi değil.)",
133133
"cleaned": "&e{0}&a market kaldırıldı.",
134134
"no-type-given": "&cKullanım: /qs find <item>",
135135
"no-world-given": "&cLütfen bir dünya adı belirtin",
@@ -177,9 +177,9 @@
177177
"unban": "&eBir oyuncunun bu marketteki yasaklamasını kaldırır",
178178
"freeze": "&eMarket takasını devre dışı bırak ya da aktifleştir",
179179
"lock": "&eMarketin kilit statüsünü değiştir",
180-
"taxaccount": "&eSet the tax account that shop using",
180+
"taxaccount": "&eAlışveriş yapılırken verginin aktarılacağı hesabı ayarlar",
181181
"toggledisplay": "&eToggle the shop display item status",
182-
"purge": "&eStart the shop purge task in background"
182+
"purge": "&eMarket temizleme görevini arka planda başlatır"
183183
},
184184
"disabled": "&cBu komut aktif değil: &e{0}",
185185
"feature-not-enabled": "Bu özellik yapılandırma dosyasında aktif değil."
@@ -333,8 +333,8 @@
333333
"unlimited-shop-owner-keeped": "&eDikkat: Marketin sahibi hala sınırsız market sahibidir, yeni dükkan sahibini yeniden ayarlamanız gerekmektedir.",
334334
"server-crash-warning": "&cEğer QuickShop Jar dosyasını sunucu çalışırken değiştirdiyseniz/sildiyseniz, /qs reload komutunu çalıştırdığınızda sunucu çökebilir.",
335335
"reloading-status": {
336-
"success": "&aReload completed without any errors.",
337-
"require-restart": "&aReload completed. &e(Some changes require server restart to affect)",
336+
"success": "&aYeniden yükleme hata olmadan tamamlandı.",
337+
"require-restart": "&aYeniden yükleme tamamlandı. &e(Bazı değişikliklerin etkilenmesi için sunucuyu yeniden başlatmak gerekebilir)",
338338
"failed": "&cReload failed, check the server console",
339339
"scheduled": "&aReload completed. &7(Some changes required a while to affect)"
340340
},
@@ -346,6 +346,6 @@
346346
"display-turn-on": "&aSuccessfully turn on the shop display.",
347347
"display-turn-off": "&aSuccessfully turn off the shop display.",
348348
"shop-purged-start": "&aShop purge started, check the console for details.",
349-
"purchase-out-of-stock": "&cThis shop run out of the stock, Contact shop owner or staffs to refill the stock.",
350-
"purchase-out-of-space": "&cThis shop run out of the space, Contact shop owner or staffs to empty the shop."
349+
"purchase-out-of-stock": "&cBu marketin stoğu tükendi, stoğu yeniden doldurmaları için mağaza sahibi ya da personelleri ile iletişime geç.",
350+
"purchase-out-of-space": "&cBu markette yer kalmadı, marketi boşaltmaları için mağaza sahibi ya da personelleri ile iletişime geç."
351351
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<artifactId>QuickShop</artifactId>
2626

2727
<properties>
28-
<pluginver>5.0.0.9</pluginver>
28+
<pluginver>5.0.0.10</pluginver>
2929
<package>org.maxgamer.quickshop</package>
3030
<developer>Ghost-chu</developer>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/org/maxgamer/quickshop/listener/PlayerListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private int getPlayerCanSell(Shop shop, double money, double price, Inventory pl
308308
items = Math.min(items, shop.getRemainingSpace());
309309
// Amount check player selling item total cost and the shop owner's balance
310310
items = Math.min(items, ownerCanAfford);
311-
} else if (plugin.getConfig().getBoolean("shop.pay-unlimited-shop-owners")) {
311+
} else if (plugin.getConfiguration().getBoolean("shop.pay-unlimited-shop-owners")) {
312312
// even if the shop is unlimited, the config option pay-unlimited-shop-owners is set to
313313
// true,
314314
// the unlimited shop owner should have enough money.

src/main/java/org/maxgamer/quickshop/util/matcher/item/BukkitItemMatcherImpl.java

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.maxgamer.quickshop.QuickShop;
2828
import org.maxgamer.quickshop.api.shop.ItemMatcher;
2929

30-
import java.util.Objects;
31-
3230
/**
3331
* A simple impl for ItemMatcher
3432
*
@@ -68,21 +66,12 @@ public class BukkitItemMatcherImpl implements ItemMatcher {
6866
*/
6967
@Override
7068
public boolean matches(@Nullable ItemStack original, @Nullable ItemStack tester) {
71-
return Objects.equals(original, tester);
72-
/*
73-
@Override
74-
@Utility
75-
public boolean equals(Object obj) {
76-
if (this == obj) {
77-
return true;
78-
}
79-
if (!(obj instanceof ItemStack)) {
80-
return false;
81-
}
82-
83-
ItemStack stack = (ItemStack) obj;
84-
return getAmount() == stack.getAmount() && isSimilar(stack);
69+
if (original == null && tester == null) {
70+
return true;
71+
}
72+
if ((original == null) != (tester == null)) {
73+
return false;
8574
}
86-
*/
75+
return tester.isSimilar(original);
8776
}
8877
}

src/main/java/org/maxgamer/quickshop/util/paste/Paste.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,14 @@ public String paste(@NotNull String content, PasteType type) {
525525
} catch (Exception ignore) {
526526
}
527527
break;
528+
case HELPCHAT:
529+
try {
530+
// Ubuntu Pastebin
531+
paster = new HelpChatPastebinPaster();
532+
return paster.pasteTheText(content);
533+
} catch (Exception ignore) {
534+
}
535+
break;
528536
default:
529537
try {
530538
// Lucko Pastebin
@@ -540,6 +548,7 @@ public String paste(@NotNull String content, PasteType type) {
540548
public enum PasteType {
541549
LUCKO,
542550
PASTEBIN,
543-
UBUNTU
551+
UBUNTU,
552+
HELPCHAT
544553
}
545554
}

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ matcher:
480480
#1= Bukkit item matcher, can be more accurate.
481481
#2= Stricter Bukkit matcher, equals method.
482482
work-type: 0
483-
#For Item
483+
#For Item (Only works under QuickShop ItemMatcher)
484484
item:
485485
#Should the Plugin check the item damage?
486486
damage: true

0 commit comments

Comments
 (0)