From 0c7b280aef7e8900646f516826f352e4d55dcd8a Mon Sep 17 00:00:00 2001 From: Deauthorized <49701242+Deauthorized@users.noreply.github.com> Date: Thu, 2 May 2024 17:28:34 -0400 Subject: [PATCH] Update TempbanCMD.java --- server/src/main/java/dev/plex/command/impl/TempbanCMD.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/dev/plex/command/impl/TempbanCMD.java b/server/src/main/java/dev/plex/command/impl/TempbanCMD.java index bada248..e295524 100644 --- a/server/src/main/java/dev/plex/command/impl/TempbanCMD.java +++ b/server/src/main/java/dev/plex/command/impl/TempbanCMD.java @@ -58,12 +58,12 @@ public class TempbanCMD extends PlexCommand { reason = StringUtils.join(args, " ", 2, args.length); String newReason = StringUtils.normalizeSpace(reason.replace("-nrb", "")); - punishment.setReason(newReason.trim().isEmpty() ? "No reason provided." : newReason); + punishment.setReason(newReason.trim().isEmpty() ? messageString("noReasonProvided") : newReason); rollBack = !reason.startsWith("-nrb") && !reason.endsWith("-nrb"); } else { - punishment.setReason("No reason provided."); + punishment.setReason(messageString("noReasonProvided")); } punishment.setPunishedUsername(target.getName()); punishment.setEndDate(TimeUtils.createDate(args[1]));