Closed Pascalpex closed 3 years ago
Opening your own inventory is sadly client side. You can only detect inventory move if they are clicking items while moving.
what does player.getOpenInventory();
do then
It returns chest inventories if the player has opened a chest for example. But it can't see a difference between the player opening and closing his own inventory. You can only detect the player moving with his own inventory open if he moved at least one item, since closing your own inventory gets sent to the server, but not opening.
ok then
I mean like I said it IS possible to detect inventory move, but only if the player actually moves items or is opening a container like a chest. There's also the problem with false positives like sliding on ice, getting knockback or pushed etc. But it is possible.
So I guess I should wait and see what RE has to say on this request before closing it
This check only can be implemented for 1.8 server/client, there is no such API for 1.9+ client/server, so I don't want to add invmove check
What features/checks do you need?: I want Matrix to prevent players from walking arround while they have an inventory opened. This hack is called InvMove in Sigma 5