Seal-fail workaround

This commit is contained in:
lukegb
2011-03-31 14:16:13 +00:00
parent d208614fcc
commit 96305c2bc2

View File

@@ -139,6 +139,9 @@ public final class PluginDescriptionFile {
try {
main = map.get("main").toString();
if (main.startsWith("org.bukkit.")) {
throw new InvalidDescriptionException("main may not be within the org.bukkit namespace");
}
} catch (NullPointerException ex) {
throw new InvalidDescriptionException(ex, "main is not defined");
} catch (ClassCastException ex) {