diff --git a/src/main/java/me/chayapak1/chomens_bot/commands/SeenCommand.java b/src/main/java/me/chayapak1/chomens_bot/commands/SeenCommand.java index 5ced1f9..509f16d 100644 --- a/src/main/java/me/chayapak1/chomens_bot/commands/SeenCommand.java +++ b/src/main/java/me/chayapak1/chomens_bot/commands/SeenCommand.java @@ -43,10 +43,10 @@ public class SeenCommand extends Command { } final JsonElement playerElement = PlayersPersistentDataPlugin.playersObject.get(player); - if (playerElement == null) return Component.translatable( + if (playerElement == null) throw new CommandException(Component.translatable( "%s was never seen", Component.text(player) - ).color(NamedTextColor.RED); + )); final JsonObject lastSeen = playerElement.getAsJsonObject().get("lastSeen").getAsJsonObject();