mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Changed both selling and buying getMessage value
Former-commit-id: 15d4b6ea5123644d0a80135d5101c562edaaa811 [formerly 106a531f5ce555f54c86b44d261dd626c865c817] Former-commit-id: d1916ae88b44e23b6414608b6f136bcecb92a735
This commit is contained in:
1 parent
3c61e7b6e9
commit
a6b9944e64
1 file changed
+2
-2
@@ -425,7 +425,7 @@ public class ShopManager {
|
||||
}
|
||||
if (amount < 1) {
|
||||
// when typed 'all' but player doesn't have any items to sell
|
||||
p.sendMessage(MsgUtil.getMessage("shop.not-enough-items-for-trade-all-items"));
|
||||
p.sendMessage(MsgUtil.getMessage("you-dont-have-that-many-items", p, "" + amount, Util.getItemStackName(shop.getItem())));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
@@ -455,7 +455,7 @@ public class ShopManager {
|
||||
amount = Math.min(amount, (int) Math.floor(balance / price));
|
||||
if (amount < 1) {
|
||||
// when typed 'all' but player can't buy any items
|
||||
p.sendMessage(MsgUtil.getMessage("shop.not-enough-money-for-trade-all-items"));
|
||||
p.sendMessage(MsgUtil.getMessage("you-cant-afford-to-buy", price, balance));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user