Remove indefinite wording for bans with expiry

This commit is contained in:
Focusvity 2022-10-29 22:09:58 +11:00
parent d2884f007b
commit 7f4000aff9
No known key found for this signature in database
GPG Key ID: 85AD157561ABE94B

View File

@ -122,7 +122,9 @@ public class IndefiniteBanList extends FreedomService
return; 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(); String reason = ban.getReason();
if (!Strings.isNullOrEmpty(reason)) if (!Strings.isNullOrEmpty(reason))
{ {