From 7f4000aff9ebe0dbbb6e276f2c99654597d3669b Mon Sep 17 00:00:00 2001 From: Focusvity Date: Sat, 29 Oct 2022 22:09:58 +1100 Subject: [PATCH] Remove indefinite wording for bans with expiry --- .../totalfreedommod/banning/IndefiniteBanList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/banning/IndefiniteBanList.java b/src/main/java/me/totalfreedom/totalfreedommod/banning/IndefiniteBanList.java index 9e8ee496..953c4c51 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/banning/IndefiniteBanList.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/banning/IndefiniteBanList.java @@ -122,7 +122,9 @@ public class IndefiniteBanList extends FreedomService return; } - String kickMessage = ChatColor.RED + "Your " + bannedBy + " is indefinitely banned from this server."; + String kickMessage = ChatColor.RED + "Your " + bannedBy + " is " + + (ban.hasExpiry() ? "" : "indefinitely ") + + "banned from this server."; String reason = ban.getReason(); if (!Strings.isNullOrEmpty(reason)) {