How to make a shared remote chest in SpigotAPI?

Viewed 39

I'm trying to make a plugin which can allow player store their items into a remote chest, and I wanna make it shared with other players, just like a public chest.

Is there a way using Spigot-API to implement it?

1 Answers

you can create an inventory:

Inventory inventory = Bukkit.createInventory(owner,size,name);

and open it when a player wants to access the remote chest:

player.openInventory(inventory);
Related