From 5ac485db465658305b6cc4cef8b9002e33dfa82e Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 31 Mar 2011 14:16:13 +0000 Subject: [PATCH] Seal-fail workaround By: lukegb --- .../src/main/java/org/bukkit/plugin/PluginDescriptionFile.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 63c90f49e2..6f6d5c4ae4 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -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) {