Skip to content

Commit

Permalink
Lock exception stack trace behind debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 12, 2023
1 parent 2c9733e commit 328d03d
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -241,7 +241,9 @@ public boolean executeSafe(org.bukkit.command.Command command, String[] args, Co
return false;
} catch (WrappedCommandException ex) {
if (ex.getCause() instanceof NumberFormatException) {
ex.printStackTrace();
if (Messaging.isDebugging()) {
ex.printStackTrace();
}
Messaging.sendErrorTr(sender, CommandMessages.INVALID_NUMBER);
} else {
throw ex.getCause();
Expand Down

0 comments on commit 328d03d

Please sign in to comment.