Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CreateInventory {
- private Inventory inv;
- public CreateInventory(String name, int size) {
- if(size <= 8) {
- size = 9;
- }
- if(size >= 55) {
- size = 54;
- }
- inv = Bukkit.createInventory(null, size, name);
- }
- public void SetItemInInventory(int slot, ItemStack it) {
- inv.setItem(slot, it);
- }
- public void openMenu(Player player) {
- player.openInventory(inv);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement