From 4da7d2bd1a32466ff97629f78cf5ff0c6b423d69 Mon Sep 17 00:00:00 2001 From: Cow Date: Mon, 7 Feb 2022 21:25:35 -0800 Subject: [PATCH] Update Punishment.java --- .../java/io/github/punishmentsx/punishments/Punishment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/io/github/punishmentsx/punishments/Punishment.java b/src/main/java/io/github/punishmentsx/punishments/Punishment.java index e761353..5a6d994 100644 --- a/src/main/java/io/github/punishmentsx/punishments/Punishment.java +++ b/src/main/java/io/github/punishmentsx/punishments/Punishment.java @@ -219,6 +219,10 @@ public void execute() { String typeString = type.equals(Type.KICK) || type.equals(Type.WARN) ? type.pastMessage() : (isActive() ? (expires == null ? "permanently " : "temporarily ") : "un") + type.pastMessage(); String message = Locale.BROADCAST.format(plugin) + .replace("%duration%", duration()) + .replace("%silentPrefix%", silentIssue ? Locale.SILENT_PREFIX.format(plugin) : "") + .replace("%expiry%", expiry()) + .replace("%reason%", issueReason) .replace("%target%", victimName) .replace("%type%", typeString) .replace("%issuer%", issuerName);