Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class PvPChatGui {
  2. public static Inventory inv;
  3.  
  4. public PvPChatGui(int size, String name) {
  5.  
  6. if(size == 0) size = 9;
  7. if(size > 54) size = 54;
  8.  
  9. inv = Bukkit.createInventory(null, size, name);
  10.  
  11. }
  12.  
  13. public void GuiCreateInventory() {
  14.  
  15. for(PvPChatGuiEnum Item : PvPChatGuiEnum.values()) {
  16. inv.setItem(Item.getSlot(), Item.getItem());
  17. }
  18.  
  19. }
  20.  
  21. public void GuiOpenInventory(Player p) {
  22.  
  23. p.openInventory(inv);
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement