mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Seal-fail workaround
By: lukegb <github@lukegb.com>
This commit is contained in:
parent
69973b8617
commit
5ac485db46
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user