From 4602e2246b3d3eba25a32ab21fb1bc456a43872b 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)) {