From 9adafdc57bfed001c64eea1070f96014614235a3 Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 10 Jan 2022 13:10:32 +0100 Subject: [PATCH] Minor formatting fix --- pom.xml | 2 +- src/main/java/tsp/headdb/inventory/InventoryUtils.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 46844bd..874e5da 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ tsp.headdb HeadDB - 3.0.1 + 3.0.2 jar HeadDB diff --git a/src/main/java/tsp/headdb/inventory/InventoryUtils.java b/src/main/java/tsp/headdb/inventory/InventoryUtils.java index dd0fe72..17e85ba 100644 --- a/src/main/java/tsp/headdb/inventory/InventoryUtils.java +++ b/src/main/java/tsp/headdb/inventory/InventoryUtils.java @@ -286,7 +286,7 @@ public class InventoryUtils { // If economy is disabled or no plugin is present, the item is free. // Don't mention receiving it for free in this case, since it is always free. if (economy == null) { - Utils.sendMessage(player, String.format("&7You received &e%d &7x &e%s!", amount, description)); + Utils.sendMessage(player, String.format("&7You received &e%d &7x &e%s&7!", amount, description)); return true; } @@ -296,10 +296,10 @@ public class InventoryUtils { if (cost > 0) { if (economy.has(player, cost)) { economy.withdrawPlayer(player, cost); - player.sendMessage(String.format("&7You purchased &e%d &7x &e%s &7for &e%.2f %s!", amount, description, cost, economy.currencyNamePlural())); + Utils.sendMessage(player, String.format("&7You purchased &e%d &7x &e%s &7for &e%.2f %s&7!", amount, description, cost, economy.currencyNamePlural())); return true; } - Utils.sendMessage(player, String.format("&7You do not have enough &e%s &cto purchase &e%d &cx &e%s.", economy.currencyNamePlural(), amount, description)); + Utils.sendMessage(player, String.format("&7You do not have enough &e%s &cto purchase &e%d &cx &e%s&7.", economy.currencyNamePlural(), amount, description)); return false; }