diff options
author | md_5 <git@md-5.net> | 2018-08-27 12:56:52 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-08-27 12:56:52 +1000 |
commit | 410a601d008d1c13612815b900f28c00ac4b90a6 (patch) | |
tree | c5c281f5c764ce1317d64369faa350c22b5abdee | |
parent | 2dcc44dcec8a985ef4da59f6c95ea4ed732f9444 (diff) | |
download | bukkit-410a601d008d1c13612815b900f28c00ac4b90a6.tar bukkit-410a601d008d1c13612815b900f28c00ac4b90a6.tar.gz bukkit-410a601d008d1c13612815b900f28c00ac4b90a6.tar.lz bukkit-410a601d008d1c13612815b900f28c00ac4b90a6.tar.xz bukkit-410a601d008d1c13612815b900f28c00ac4b90a6.zip |
SPIGOT-4313: Unsupported plugin should not crash server
-rw-r--r-- | src/main/java/org/bukkit/UnsafeValues.java | 3 |
1 files changed, 2 insertions, 1 deletions
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); |