re-ovo / Matrix-Issues

Matrix Issue Tracker
GNU General Public License v2.0
50 stars 17 forks source link

[REQUEST] Anti-InvMove #2387

Closed Pascalpex closed 3 years ago

Pascalpex commented 3 years ago

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

DontNeedAName commented 3 years ago

Opening your own inventory is sadly client side. You can only detect inventory move if they are clicking items while moving.

Pascalpex commented 3 years ago

what does player.getOpenInventory(); do then

DontNeedAName commented 3 years ago

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.

Pascalpex commented 3 years ago

ok then

DontNeedAName commented 3 years ago

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.

Pascalpex commented 3 years ago

So I guess I should wait and see what RE has to say on this request before closing it

re-ovo commented 3 years ago

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