mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-26 04:12:22 +00:00
Display '∞' instead of '-1' in the shop limits message
This commit is contained in:
parent
b423fbd98b
commit
1666051eb8
@ -373,7 +373,7 @@ public class Config {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String occupied_shop_slots(int limit, int amount) {
|
public static String occupied_shop_slots(int limit, int amount) {
|
||||||
return plugin.getConfig().getString("messages.occupied-shop-slots").replace(Regex.limit, String.valueOf(limit)).replace(Regex.amount, String.valueOf(amount)).replaceAll("(&([a-f0-9k-or]))", "\u00A7$2");
|
return plugin.getConfig().getString("messages.occupied-shop-slots").replace(Regex.limit, (limit == -1) ? "∞" : String.valueOf(limit)).replace(Regex.amount, String.valueOf(amount)).replaceAll("(&([a-f0-9k-or]))", "\u00A7$2");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String shopInfo_stock(int amount) {
|
public static String shopInfo_stock(int amount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user