From 410a601d008d1c13612815b900f28c00ac4b90a6 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 27 Aug 2018 12:56:52 +1000 Subject: SPIGOT-4313: Unsupported plugin should not crash server --- src/main/java/org/bukkit/UnsafeValues.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java index 33cad901..a4aabfe7 100644 --- a/src/main/java/org/bukkit/UnsafeValues.java +++ b/src/main/java/org/bukkit/UnsafeValues.java @@ -4,6 +4,7 @@ import org.bukkit.advancement.Advancement; import org.bukkit.block.data.BlockData; import org.bukkit.inventory.ItemStack; import org.bukkit.material.MaterialData; +import org.bukkit.plugin.InvalidPluginException; import org.bukkit.plugin.PluginDescriptionFile; /** @@ -31,7 +32,7 @@ public interface UnsafeValues { ItemStack modifyItemStack(ItemStack stack, String arguments); - void checkSupported(PluginDescriptionFile pdf); + void checkSupported(PluginDescriptionFile pdf) throws InvalidPluginException; byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz); -- cgit v1.2.3