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
This commit is contained in:
Chayapak 2023-10-01 11:58:51 +07:00
parent 5d792b30a5
commit 6a75527674

View file

@ -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()));
}