File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/net/onelitefeather/antiredstoneclockremastered/service/impl Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,14 @@ private WebhookClient createWebHook() {
4848 try {
4949 URI .create (this .plugin .getConfig ().getString ("notification.discord.webhook" , "" ));
5050 } catch (IllegalArgumentException e ) {
51- LOGGER .error ("Failed to create webhook client. Please check your webhook URL in the config.yml" );
52- LOGGER .error ("Disabling plugin..." );
51+ LOGGER .error ("Failed to create webhook client. Please check your webhook URL in the config.yml" , e );
5352 Bukkit .getPluginManager ().disablePlugin (this .plugin );
5453 return null ;
5554 }
5655 try {
5756 return WebhookClient .withUrl (this .plugin .getConfig ().getString ("notification.discord.webhook" , "" ));
5857 } catch (IllegalArgumentException e ) {
59- LOGGER .error ("Failed to create webhook client. Please check your webhook URL in the config.yml" );
60- LOGGER .error ("Disabling plugin..." );
58+ LOGGER .error ("Failed to create webhook client. Please check your webhook URL in the config.yml" , e );
6159 Bukkit .getPluginManager ().disablePlugin (this .plugin );
6260 return null ;
6361 }
You can’t perform that action at this time.
0 commit comments