Advertisement
Guest User

GuiKamien

a guest
Jan 17th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import org.bukkit.entity.*;
  2. import org.bukkit.event.inventory.*;
  3. import org.bukkit.*;
  4. import org.bukkit.inventory.*;
  5. import pl.Kamyk454.utils.GuiBuilder;
  6.  
  7. public class GuiKamien
  8. {
  9. public static Inventory drop;
  10. public static GuiKamien GuiDrop;
  11.  
  12. public static void openDropGui(final Player p) {
  13. GuiDrop.drop.setItem(0, new GuiBuilder(Material.DIAMOND, 1).getTitle("§bDrop z kamienia").build());
  14. GuiDrop.drop.setItem(2, new GuiBuilder(Material.DIAMOND, 1).getTitle("§bDrop z pandorki").build());
  15. GuiDrop.drop.setItem(4, new GuiBuilder(Material.DIAMOND, 1).getTitle("§bDrop z casow").build());
  16. p.openInventory(GuiDrop.drop);
  17. }
  18.  
  19. static {
  20. GuiDrop.drop = Bukkit.createInventory((InventoryHolder)null, InventoryType.HOPPER, "§aDROP");
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement