From 6a7552767464a05b17697f102a324b12a5d0333c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 1 Oct 2023 11:58:51 +0700 Subject: [PATCH] servereval commandexception fix (mabe major) well im only the one that has access to servereval anyway actually the some of chomens discord members too but whatever --- .../chayapak/chomens_bot/commands/ServerEvalCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ServerEvalCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ServerEvalCommand.java index f8af7728..b227cb1f 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ServerEvalCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/ServerEvalCommand.java @@ -40,6 +40,8 @@ public class ServerEvalCommand extends Command { final LuaValue output = chunk.call(); return Component.text(output.toString()).color(NamedTextColor.GREEN); + } catch (CommandException e) { + throw e; } catch (Exception e) { throw new CommandException(Component.text(e.toString())); }