Skip to content

Commit

Permalink
Update Punishment.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Cow authored and Cow committed Feb 8, 2022
1 parent f5f11fe commit 4da7d2b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4da7d2b

Please sign in to comment.