oldstuffs / SmartInventory

Moved to https://github.com/Infumia/InfumiaLib
MIT License
15 stars 1 forks source link

Displaying same inventory for multiple players #107

Closed GustavHaavik closed 3 years ago

GustavHaavik commented 3 years ago

How do I show an inventory that updates for other players.

portlek commented 3 years ago

Inventories links just one player in Bukkit. The same inventory instance can't show to other players. You have to sync each player's inventory every change.

GustavHaavik commented 3 years ago

Any suggestions how to do this efficiently?

portlek commented 3 years ago

the smart inventory already supports that. you are creating the page and the page has an open method, so you can use the open method for each player, there is no efficiency here. there is just one way to do that.