Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PvPChatGui {
- public static Inventory inv;
- public PvPChatGui(int size, String name) {
- if(size == 0) size = 9;
- if(size > 54) size = 54;
- inv = Bukkit.createInventory(null, size, name);
- }
- public void GuiCreateInventory() {
- for(PvPChatGuiEnum Item : PvPChatGuiEnum.values()) {
- inv.setItem(Item.getSlot(), Item.getItem());
- }
- }
- public void GuiOpenInventory(Player p) {
- p.openInventory(inv);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement