mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-28 08:50:57 +00:00
Print stack trace if debug is enabled.
This commit is contained in:
parent
01bf7d1389
commit
effad664d5
|
@ -439,6 +439,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
showError(sender, ex, commandLabel);
|
showError(sender, ex, commandLabel);
|
||||||
|
if(settings.isDebug()) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
|
Loading…
Reference in a new issue