How can I get inventory that player is opening in sponge 8.0?

ServerPlayer p;
Inventory inv = p.getOpenInventory(); ← I want like this

How can I get inventory that player is opening in sponge 8.0 ?

Please help me.

p.openInventory();

Bit confusing i know as to open a inventory is the same method with parameters. But sometimes when removing the get and set it combines action method names and getter/setter method names together

1 Like

Thank for you care!