mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
[trunk] Better log of command errors
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1224 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -572,6 +572,7 @@ public class Essentials extends JavaPlugin
|
|||||||
catch (Throwable ex)
|
catch (Throwable ex)
|
||||||
{
|
{
|
||||||
sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage());
|
sender.sendMessage(ChatColor.RED + "Error: " + ex.getMessage());
|
||||||
|
logger.log(Level.WARNING, "Error calling command /"+commandLabel, ex);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user