From 706a8768b5fc536ed746788cd9c65c7254df6bb4 Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 24 Apr 2020 15:54:41 +0100 Subject: Don't print command exceptions to console --- spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java | 1 - 1 file changed, 1 deletion(-) (limited to 'spark-common/src/main/java/me/lucko/spark') diff --git a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java index 4d6557b..da4f4d8 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java +++ b/spark-common/src/main/java/me/lucko/spark/common/SparkPlatform.java @@ -199,7 +199,6 @@ public class SparkPlatform { try { command.executor().execute(this, sender, resp, new Arguments(rawArgs)); } catch (IllegalArgumentException e) { - e.printStackTrace(); resp.replyPrefixed(TextComponent.of(e.getMessage(), TextColor.RED)); } return; -- cgit