* [Transfer] Check limit when transferring shop and bump version

* New Crowdin translations by Github Action

* [1.20.x] Cancel for interacting with sign (editing)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
authored and GitHub committed 2023-06-26 02:00:53 +08:00
1 parent 618af72c27
commit 8a6d109083
39 files changed
+85 -2

No files matched your search

+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Desconegut",
"owner-bypass-check": "&eIntercanviat amb èxit! (Ara ets el propietari de la botiga!)",
"reached-maximum-can-create": "&cJa has creat un màxim de {0}/{1} botigues!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPreu restringit per {0}: Mínim {1}, màxim {2}.",
"no-enough-money-to-keep-shops": "&cNo tenies prou diners per mantenir les teves botigues! Totes les botigues s'han eliminat...",
"nothing-to-flush": "&aNo tens missatges de botigues nous.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Nezname",
"owner-bypass-check": "&b▪&8▏ &bSystem &8› &7Prošel všechny kontroly. Obchod byl úspěšný! (Nyní jste vlastníkem obchodu!)",
"reached-maximum-can-create": "&b▪&8▏ &bSystem &8› &cJiž jste vytvořili maximum {0}/{1} obchodů!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&b▪&8▏ &bSystem &8› &cOmezená cena za {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&b▪&8▏ &bSystem &8› &cNemáte dostatek peněz na udržení svých obchodů! Všechny obchody byly odstraněny...",
"nothing-to-flush": "&b▪&8▏ &bSystem &8› &7Nemáte žádné nové zprávy o obchodu.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unbekannt",
"owner-bypass-check": "&eAlle Prüfungen wurden umgangen. Handel erfolgreich! (Sie sind jetzt der Besitzer des Ladens!)",
"reached-maximum-can-create": "&cDu hast bereits das Maximum von {0}/{1} Shops erstellt!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cEingeschränkter Preis für {0}: Mindestens {1}, maximal {2}",
"no-enough-money-to-keep-shops": "&cDu hattest nicht genug Geld um deine Shops zu behalten! Alle Shops wurden entfernt...",
"nothing-to-flush": "&aEs gibt keine neuen Nachrichten zu deinem Shop.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't had enough money to keep your shops! All your shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Desconocido",
"owner-bypass-check": "&ePasado todos los controles. ¡Comercio exitoso! (¡Ahora eres el propietario de la tienda!)",
"reached-maximum-can-create": "&c¡Ya has creado un máximo de {0}/{1} tiendas!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPrecio restringido de {0}: Mín. {1}, Máx. {2}",
"no-enough-money-to-keep-shops": "&c¡No dispones del suficiente dinero para mantener tus tiendas! Todas tus tiendas han sido eliminadas...",
"nothing-to-flush": "&aNo tienes mensajes de tienda nuevos.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Tuntematon",
"owner-bypass-check": "&eOhitit kaikki tarkastukset. Vaihto onnistui! (Olet nyt kaupan omistaja!)",
"reached-maximum-can-create": "&cOlet jo luonut jo {0}/{1}, eli maksimi määrän kauppoja!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRajattu hinta tuotteelle {0}: vähintään {1}, enintään {2}",
"no-enough-money-to-keep-shops": "&cSinulla ei ollut tarpeeksi rahaa kauppojen ylläpitoon! Kaikki kaupat on poistettu...",
"nothing-to-flush": "&aSinulle ei ole uusia kauppaviestejä.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Inconnu",
"owner-bypass-check": "&eVérifications passées. Echange réussi ! (Tu es propriétaire de la boutique!)",
"reached-maximum-can-create": "&cTu as atteint ton nombre de coffre de boutiques maximal : {0}/{1}!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPrix restreints {0}: min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cTu n'as plus assez d'argent pour garder tes boutiques! Tous tes coffres ont été supprimés...",
"nothing-to-flush": "&aAucun nouveau message.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Ismeretlen",
"owner-bypass-check": "&eSikeresen átmentél az összes ellenőrzésen! Üzlet sikeresen megtörtént! (Te vagy a bolt tulajdonosa)",
"reached-maximum-can-create": "&cNeked van már {0}/{1} boltod!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cKorlátozott ár van a {0}n: min {1} , max {2}",
"no-enough-money-to-keep-shops": "&cNincs elég pénzed, hogy fentartsd a boltjaidat! Az összes bolt törölve lett...",
"nothing-to-flush": "&aNeked nincs új bolti üzeneted.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "&2Sconosciuto",
"owner-bypass-check": "&eBypassato tutti i controlli. Eseguito con successo! (Ora sei il proprietario del negozio!)",
"reached-maximum-can-create": "&cHai già creato un massimo di {0}/{1} negozi!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPrezzo ristretto per {0}: Minimo {1}, max {2}",
"no-enough-money-to-keep-shops": "&cNon hai abbastanza soldi per tenere i tuoi negozi! Tutti i negozi sono stati rimossi...",
"nothing-to-flush": "&aNon hai nuovi messaggi nel negozio.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "不明",
"owner-bypass-check": "&e全てのチェックをバイパスしました。取引成功! (あなたがショップの店主になりました!)",
"reached-maximum-can-create": "&cあなたはすでに最大値を超えて {0} / {1} のショップを作成しています!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c{0} の価格制限: 最低 {1}, 最高 {2}",
"no-enough-money-to-keep-shops": "&cショップを維持するのに十分な資金がありませんので全てのショップが削除されました...",
"nothing-to-flush": "&a新しいショップメッセージはありませんでした",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "알 수 없음",
"owner-bypass-check": "&e모든 조사를 통과하여, 거래를 완료했습니다! (당신은 상점 주인입니다.)",
"reached-maximum-can-create": "&c당신은 이미 최대 {0}/{1} 개의 상점을 생성했습니다!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c{0} 에 대한 가격이 제한되었습니다. 최소 {1} 원, 최대 {2} 원",
"no-enough-money-to-keep-shops": "&c당신은 당신의 상점유지에 필요한 돈이 없습니다! 모든상점이 제거 됩니다...",
"nothing-to-flush": "&a새로운 상점 메세지가 없습니다.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "onbekend",
"owner-bypass-check": "&eBypassed alle controles. Handel succesvol! (Je bent nu de eigenaar van de winkel!)",
"reached-maximum-can-create": "&cJe hebt al een maximum van {0}/{1} winkels gemaakt!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cBeperkte prijs voor {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cJe had niet genoeg geld om je winkels te houden! Alle winkels zijn verwijderd...",
"nothing-to-flush": "&aU heeft geen nieuwe winkel berichten.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Ukjent",
"owner-bypass-check": "&aAlle sjekker ble ignorert. Overføringen ble gjennomført! (Du er nå eieren av butikken!)",
"reached-maximum-can-create": "&cDu har allerede opprettet maksimum {0}/{1} butikker!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cBegrenset pris for {0}: Min {1}, maks {2}",
"no-enough-money-to-keep-shops": "&cDu har ikke nok penger til å beholde butikkene! Alle butikker ble fjernet...",
"nothing-to-flush": "&aDu har ingen nye butikkmeldinger.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Nieznany",
"owner-bypass-check": "&ePominięto wszystkie sprawdzania. Handel zakończony sukcesem! (Jesteś teraz właścicielem sklepu!)",
"reached-maximum-can-create": "&cJuż utworzyłeś maksimum {0}/{1} sklepów!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cOgraniczona cena dla {0}: min. {1}, maks. {2}",
"no-enough-money-to-keep-shops": "&cNie masz wystarczająco pieniędzy, aby przechowywać sklepy! Wszystkie sklepy zostały usunięte...",
"nothing-to-flush": "&aNie masz nowych wiadomości ze sklepu.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Desconhecido",
"owner-bypass-check": "&eIgnorado todas as verificações, operação bem sucedida! (Agora \nvocê é o dono da loja!)",
"reached-maximum-can-create": "&cVocê já criou o máximo de lojas! ({0}/{1})",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPreço restrito para {0}: Mínimo de {1}, máximo de {2}",
"no-enough-money-to-keep-shops": "&cVocê não tinha dinheiro suficiente para manter suas lojas! Todas as lojas foram removidas...",
"nothing-to-flush": "&aVocê não tem novas mensagens da loja.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Necunoscută",
"owner-bypass-check": "&eA trecut toate cecurile. Tranzacționați cu succes! (Fii proprietarul magazinului!)",
"reached-maximum-can-create": "&cAi creat deja un maxim de {0}/{1} magazine!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cPret limitat pentru {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cNu ai destui bani pentru a-ti pastra magazinele! Toate magazinele au fost sterse...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Неизвестно",
"owner-bypass-check": "&eВсе проверки прошли, вы можете торговать! (Теперь вы владелец магазина!)",
"reached-maximum-can-create": "&cВы уже создали максимум {0}/{1} магазинов!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cЦена ограничена {0}: от {1} до {2}",
"no-enough-money-to-keep-shops": "&7Недостаточно средств для аренды магазинов. Все магазины были удалены...",
"nothing-to-flush": "&aУ вас нет новых сообщений в магазине.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Okänd",
"owner-bypass-check": "&eIgnorerade alla checkar. Bytet lyckades! (Du är nu butiksägaren!)",
"reached-maximum-can-create": "&cDu har redan skapat {0}/{1} butiker vilket är max!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cBegränsat pris för {0}: Minst {1}, högst {2}",
"no-enough-money-to-keep-shops": "&cDu har inte tillräckligt med pengar för att behålla dina butiker! Alla butiker har tagits bort...",
"nothing-to-flush": "&aDu har inga nya butiksmeddelanden.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Bilinmiyor",
"owner-bypass-check": "&eBütün kontroller atlandı. Ticaret başarılı! (Market sahibisin!)",
"reached-maximum-can-create": "&cZaten maksimum {0}/{1} market oluşturdun!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c{0} için sınırlandırılmış fiyat: Min {1}, Maks {2}",
"no-enough-money-to-keep-shops": "&cMarketlerini açık tutacak kadar paran yoktu! Bütün marketlerin kaldırıldı...",
"nothing-to-flush": "&aYeni market mesajınız yok.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Không xác định",
"owner-bypass-check": "&eBỏ qua tất cả các kiểm tra. Giao dịch thành công! (Bây giờ bạn là chủ cửa hàng!)",
"reached-maximum-can-create": "&cBạn đã tạo tối đa {0}/{1} cửa hàng!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cGiá hạn chế cho {0}: Tối thiểu {1}, tối đa {2}",
"no-enough-money-to-keep-shops": "&cBạn không có đủ tiền để giữ cửa hàng của mình! Tất cả các cửa hàng đã bị xóa ...",
"nothing-to-flush": "&aBạn không có tin nhắn từ của hàng.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "未知所有者",
"owner-bypass-check": "&e已绕过所有检查并完成交易(因为你是商店所有者)!",
"reached-maximum-can-create": "&c你创建的商店数量达到上限:{0}/{1}",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c物品 {0} 的价格限制为 {1}(包含)到{2}(包含)",
"no-enough-money-to-keep-shops": "&c你没有足够的金钱去维持你商店的运营!所有商店已被移除...",
"nothing-to-flush": "&a你没有新的商店消息",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "未知",
"owner-bypass-check": "&e已繞過所有檢查. 交易成功! (你宜家係新既店主!)",
"reached-maximum-can-create": "&c你已經創建咗 {0}/{1} 個商店!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c{0} 既限制價格:最低 {1},最高 {2}",
"no-enough-money-to-keep-shops": "&c你冇足夠既錢黎維持你既商店! 你所有既商店已被移除...",
"nothing-to-flush": "&a你冇任何來自商店既新消息.",
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "未知",
"owner-bypass-check": "&e繞過所有檢查並交易成功!(因為你是商店擁有者!)",
"reached-maximum-can-create": "&c你建立的商店數量已達到上限(你已建立 {0} 個,最多 {1} 個!)",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&c{0} 是無效的價格:最高 {1},最低 {2}。",
"no-enough-money-to-keep-shops": "&c你沒有足夠的金錢維持你的商店經營!所以你所有的商店已被移除……",
"nothing-to-flush": "&a沒有關於商店的新訊息。",
+2 -2
View File
@@ -25,7 +25,7 @@
<artifactId>QuickShop</artifactId>
<properties>
<pluginver>5.1.2.1</pluginver>
<pluginver>5.1.2.2</pluginver>
<package>org.maxgamer.quickshop</package>
<developer>Ghost-chu</developer>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -854,7 +854,7 @@
<dependency>
<groupId>com.github.alex9849</groupId>
<artifactId>advanced-region-market</artifactId>
<version>3.4.3</version>
<version>3.5.0</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -19,6 +19,7 @@
package org.maxgamer.quickshop.command.subcommand;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -55,6 +56,16 @@ public class SubCommand_Transfer implements CommandHandler<Player> {
}
final UUID targetPlayerUUID = targetPlayer.getUuid();
List<Shop> shopList = plugin.getShopManager().getPlayerAllShops(sender.getUniqueId());
if (plugin.isLimit()) {
final Player player = plugin.getServer().getPlayer(targetPlayerUUID);
if (player == null) {
plugin.text().of(sender, "unknown-player").send();
return;
}
if (!checkAndSendLimitMessage(player, sender, shopList.size())) {
return;
}
}
for (Shop shop : shopList) {
if (!shop.isBuying()) {
shop.setOwner(targetPlayerUUID);
@@ -88,6 +99,16 @@ public class SubCommand_Transfer implements CommandHandler<Player> {
}
final UUID targetPlayerUUID = targetPlayer.getUuid();
List<Shop> shopList = plugin.getShopManager().getPlayerAllShops(fromPlayer.getUuid());
if (plugin.isLimit()) {
final Player player = plugin.getServer().getPlayer(targetPlayerUUID);
if (player == null) {
plugin.text().of(sender, "unknown-player").send();
return;
}
if (!checkAndSendLimitMessage(player, sender, shopList.size())) {
return;
}
}
for (Shop shop : shopList) {
shop.setOwner(targetPlayerUUID);
}
@@ -98,6 +119,27 @@ public class SubCommand_Transfer implements CommandHandler<Player> {
}
}
private boolean checkAndSendLimitMessage(Player checkingPlayer, CommandSender commandSender, int increment) {
if (plugin.isLimit()) {
int owned = 0;
if (plugin.getConfig().getBoolean("limits.old-algorithm")) {
owned = plugin.getShopManager().getPlayerAllShops(checkingPlayer.getUniqueId()).size();
} else {
for (final Shop shop : plugin.getShopManager().getPlayerAllShops(checkingPlayer.getUniqueId())) {
if (!shop.isUnlimited()) {
owned++;
}
}
}
int max = plugin.getShopLimit(checkingPlayer);
if (owned + increment <= max) {
plugin.text().of(commandSender, "reached-maximum-other-can-hold", String.valueOf(owned), String.valueOf(max)).send();
return false;
}
}
return true;
}
@Override
public @Nullable List<String> onTabComplete(@NotNull Player sender, @NotNull String commandLabel, @NotNull String[] cmdArg) {
return cmdArg.length <= 2 ? Util.getPlayerList() : Collections.emptyList();
@@ -54,6 +54,7 @@ import org.maxgamer.quickshop.api.shop.Info;
import org.maxgamer.quickshop.api.shop.Shop;
import org.maxgamer.quickshop.api.shop.ShopAction;
import org.maxgamer.quickshop.shop.SimpleInfo;
import org.maxgamer.quickshop.util.GameVersion;
import org.maxgamer.quickshop.util.InteractUtil;
import org.maxgamer.quickshop.util.MsgUtil;
import org.maxgamer.quickshop.util.PermissionChecker;
@@ -169,6 +170,10 @@ public class PlayerListener extends AbstractQSListener {
if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
e.setUseItemInHand(Event.Result.DENY);
}
//Cancel for interacting with sign (editing)
if (plugin.getGameVersion().ordinal() >= GameVersion.v1_20_R1.ordinal()) {
e.setCancelled(true);
}
}
}
}
+1
View File
@@ -70,6 +70,7 @@
"unknown-owner": "Unknown",
"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!",
"reached-maximum-other-can-hold": "&cTarget player has reached the maximum of {0}/{1} shops!",
"restricted-prices": "&cRestricted price for {0}: Min {1}, max {2}",
"no-enough-money-to-keep-shops": "&cYou didn't have enough money to keep your shops! All shops have been removed...",
"nothing-to-flush": "&aYou have no new shop messages.",