From 7d94717de59d9d77376e988108c2a56dc9634560 Mon Sep 17 00:00:00 2001 From: Deauthorized <49701242+Deauthorized@users.noreply.github.com> Date: Thu, 2 May 2024 17:23:37 -0400 Subject: [PATCH] Update BanCMD.java --- server/src/main/java/dev/plex/command/impl/BanCMD.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/dev/plex/command/impl/BanCMD.java b/server/src/main/java/dev/plex/command/impl/BanCMD.java index 05d59c0..39edc80 100644 --- a/server/src/main/java/dev/plex/command/impl/BanCMD.java +++ b/server/src/main/java/dev/plex/command/impl/BanCMD.java @@ -68,12 +68,12 @@ public class BanCMD extends PlexCommand { reason = StringUtils.join(args, " ", 1, 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(plexPlayer.getName()); ZonedDateTime date = ZonedDateTime.now(ZoneId.of(TimeUtils.TIMEZONE));