Print stack trace if debug is enabled.

This commit is contained in:
drtshock 2015-04-20 17:49:23 -05:00
parent 01bf7d1389
commit effad664d5
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
return true;
} catch (Exception ex) {
showError(sender, ex, commandLabel);
if(settings.isDebug()) {
ex.printStackTrace();
}
return true;
}
} catch (Throwable ex) {