diff --git a/server/src/main/java/dev/plex/command/impl/SmiteCMD.java b/server/src/main/java/dev/plex/command/impl/SmiteCMD.java index 197208e..58fa334 100644 --- a/server/src/main/java/dev/plex/command/impl/SmiteCMD.java +++ b/server/src/main/java/dev/plex/command/impl/SmiteCMD.java @@ -78,21 +78,16 @@ public class SmiteCMD extends PlexCommand final Player player = getNonNullPlayer(args[0]); final PlexPlayer plexPlayer = getPlexPlayer(player); - Title title = Title.title(Component.text("You've been smitten.").color(NamedTextColor.RED), Component.text("Be sure to follow the rules!").color(NamedTextColor.YELLOW)); + Title title = Title.title(messageComponent("smiteTitleHeader"), messageComponent("smiteTitleMessage", reason, sender.getName())); player.showTitle(title); if (!silent) { - PlexUtils.broadcast(mmString("" + player.getName() + " has been a naughty, naughty boy.")); - if (reason != null) - { - PlexUtils.broadcast(mmString(" Reason: " + "" + reason)); - } - PlexUtils.broadcast(mmString(" Smitten by: " + "" + sender.getName())); + PlexUtils.broadcast(messageComponent("smiteBroadcast", player.getName(), reason != null ? reason : messageString("noReasonProvided"), sender.getName())); } else { - send(sender, "Smitten " + player.getName() + " quietly."); + send(sender, messageComponent("smittenQuietly", player.getName())); } // Set gamemode to survival @@ -129,8 +124,8 @@ public class SmiteCMD extends PlexCommand if (reason != null) { punishment.setReason(reason); - send(player, mmString("You've been smitten. Reason: " + reason)); } + send(player, messageComponent("smitten", reason != null ? reason : messageString("noReasonProvided"))); return null; } @@ -143,4 +138,4 @@ public class SmiteCMD extends PlexCommand } return Collections.emptyList(); } -} \ No newline at end of file +}