I was reading up on how to catch errors coming from a Bukkit plugin but ran into many problems. First is, what methods are there to prevent the plugin from crashing in the first place if there is an error. Sorta like catching itself. Another is how can I get the stack traces from the errors from the plugin? Then log them with the same plugin? I really cant find a way to do this since the Bukkit server catches errors with custom code. So any help will be appreciated and also I am an experienced coder so please don't be shy on code talk. @nverdier Anyways. If I have this on multiple servers and have it in an alpha state I need it to collect every bug. Especially since I code in 4000+ lines of code on my usual plugins. EDIT by Moderator: merged posts, please use the edit button instead of double posting.