Closed ghost closed 6 years ago
$menu = InvMenu::create(InvMenu::TYPE_HOPPER)->readonly()->sessionize(); $menu->send($sender);
Maybe I need to use my class?
I'm using PluginTask for setItem()
I want the player not to take the item.
Hm, you definitely aren't using TYPE_HOPPER in the screenshot
I can't reproduce this, I've done the following tests: https://gist.github.com/Muqsit/8154dac28a85c71c46f6b42a0d55df41 and it works fine.
Function readonly() not work on TYPE_HOPPER