SpoutDev/SpoutAPI — pull request #377 by DziNeIT (2012-10-24 16:31:57+00:00)
Title: Catch UnsupportedClassVersionError and print a nice message

Rather than confusing non-dev users with a massive UnsupportedClassVersionError stack trace, print a message informing the admin that the plugin was built for a newer version of Java than they have and skip loading it.

Didn't think throw new InvalidPluginException was the right way to go here since it's the server's Java version that's too old, not the plugin's fault. I also thought not throwing an exception at all would be better on the users end, as my message informs them that the plugin cannot be loaded anyway.