diff --git a/Spigot-Server-Patches/Paper-dumpitem-command.patch b/Spigot-Server-Patches/Paper-dumpitem-command.patch index acf32487c..7d1f1c45a 100644 --- a/Spigot-Server-Patches/Paper-dumpitem-command.patch +++ b/Spigot-Server-Patches/Paper-dumpitem-command.patch @@ -51,6 +51,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 } + private void doDumpItem(CommandSender sender) { ++ if (!(sender instanceof Player)) { ++ sender.sendMessage("Only players can use this command"); ++ return; ++ } + ItemStack itemInHand = ((CraftPlayer) sender).getItemInHand(); + net.minecraft.server.ItemStack itemStack = CraftItemStack.asNMSCopy(itemInHand); + NBTTagCompound tag = itemStack.getTag();