How can I close player inventory?

In Sponge 7.0 I can close player inventory by using player.closeInventory(); method.

but In Sponge 8.0 I couldn’t find the close inventory method.

How can I close player inventory ?

Please help me.

I’ve found it. ServerPlayer.closeInventory();

1 Like