diff --git a/src/main/java/net/knarcraft/paidsigns/manager/TrackedSignManager.java b/src/main/java/net/knarcraft/paidsigns/manager/TrackedSignManager.java index abeef20..33a7cc2 100644 --- a/src/main/java/net/knarcraft/paidsigns/manager/TrackedSignManager.java +++ b/src/main/java/net/knarcraft/paidsigns/manager/TrackedSignManager.java @@ -153,7 +153,13 @@ public final class TrackedSignManager { return; } OfflinePlayer offlinePlayer = Bukkit.getOfflinePlayer(trackedSign.playerId()); - double refundSum = trackedSign.cost() / 100 * PaidSigns.getInstance().getRefundPercentage(); + double refundSum; + if (forceRefund) { + //In the case where a refund is forced, the normal refund rate should not apply + refundSum = trackedSign.cost(); + } else { + refundSum = trackedSign.cost() / 100 * PaidSigns.getInstance().getRefundPercentage(); + } EconomyManager.deposit(offlinePlayer, refundSum); if (offlinePlayer instanceof Player player) { PaidSigns.getStringFormatter().displaySuccessMessage(player, String.format(