Better way to get inventory. This prevents problems with other plugins.