From f1680174ae34db4f8646578c60d256d3e21e3a39 Mon Sep 17 00:00:00 2001 From: Deauthorized <49701242+Deauthorized@users.noreply.github.com> Date: Sat, 4 May 2024 02:45:39 -0400 Subject: [PATCH] Update DebugCMD.java --- .../main/java/dev/plex/command/impl/DebugCMD.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/main/java/dev/plex/command/impl/DebugCMD.java b/server/src/main/java/dev/plex/command/impl/DebugCMD.java index a1635f2..02f6a2c 100644 --- a/server/src/main/java/dev/plex/command/impl/DebugCMD.java +++ b/server/src/main/java/dev/plex/command/impl/DebugCMD.java @@ -41,9 +41,9 @@ public class DebugCMD extends PlexCommand if (plugin.getRedisConnection().getJedis().exists(player.getUniqueId().toString())) { plugin.getRedisConnection().getJedis().del(player.getUniqueId().toString()); - return componentFromString("Successfully reset " + player.getName() + "'s Redis punishments!").color(NamedTextColor.YELLOW); + return messageComponent("redisResetSuccessful", player.getName()); } - return componentFromString("Couldn't find player in Redis punishments."); + return messageComponent("redisResetPlayerNotFound"); } } if (args[0].equalsIgnoreCase("gamerules")) @@ -62,7 +62,7 @@ public class DebugCMD extends PlexCommand PlexLog.log("Set specific gamerules for world: " + world.toLowerCase(Locale.ROOT)); } } - return mmString("Re-applied game all the game rules!"); + return messageComponent("reappliedGamerules"); } if (args[0].equalsIgnoreCase("aliases")) { @@ -72,9 +72,9 @@ public class DebugCMD extends PlexCommand Command command = plugin.getServer().getCommandMap().getCommand(commandName); if (command == null) { - return mmString("That command could not be found!"); + return messageComponent("commandNotFound"); } - return mmString("Aliases for " + commandName + " are: " + Arrays.toString(command.getAliases().toArray(new String[0]))); + return messageComponent("commandAliases", commandName, Arrays.toString(command.getAliases().toArray(new String[0]))); } } if (args[0].equalsIgnoreCase("pagination")) @@ -94,4 +94,4 @@ public class DebugCMD extends PlexCommand { return args.length == 1 && silentCheckPermission(sender, this.getPermission()) ? PlexUtils.getPlayerNameList() : ImmutableList.of(); } -} \ No newline at end of file +}