From 1666051eb8b4325c80c18b9ff1e3fe9b88f88c70 Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 5 Jun 2016 18:53:46 +0200 Subject: [PATCH] =?UTF-8?q?Display=20'=E2=88=9E'=20instead=20of=20'-1'=20i?= =?UTF-8?q?n=20the=20shop=20limits=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/epiceric/shopchest/config/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/epiceric/shopchest/config/Config.java b/src/de/epiceric/shopchest/config/Config.java index c97603a..ea43b5d 100644 --- a/src/de/epiceric/shopchest/config/Config.java +++ b/src/de/epiceric/shopchest/config/Config.java @@ -373,7 +373,7 @@ public class Config { } 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) {