13
0
geforkt von Mirrors/Paper

SPIGOT-4313: Unsupported plugin should not crash server

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2018-08-27 12:56:52 +10:00
Ursprung c973296323
Commit ee106c043e

Datei anzeigen

@ -4,6 +4,7 @@ import org.bukkit.advancement.Advancement;
import org.bukkit.block.data.BlockData; import org.bukkit.block.data.BlockData;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData; import org.bukkit.material.MaterialData;
import org.bukkit.plugin.InvalidPluginException;
import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginDescriptionFile;
/** /**
@ -31,7 +32,7 @@ public interface UnsafeValues {
ItemStack modifyItemStack(ItemStack stack, String arguments); ItemStack modifyItemStack(ItemStack stack, String arguments);
void checkSupported(PluginDescriptionFile pdf); void checkSupported(PluginDescriptionFile pdf) throws InvalidPluginException;
byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz); byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz);