Keago

Untitled

Jun 5th, 2020
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package me.keago.gui.ui;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.inventory.Inventory;
  6.  
  7. import me.keago.gui.utils.Utils;
  8.  
  9. public class TestUi {
  10.  
  11. public static Inventory inv;
  12. public static String inventory_name;
  13. public static int inv_rows = 4 * 9;
  14.  
  15. public static void initialize() {
  16. inventory_name = Utils.chat("&5&lKits");
  17.  
  18. inv = Bukkit.createInventory(null, inv_rows);
  19.  
  20. }
  21.  
  22. public static Inventory GUI (Player p) {
  23.  
  24. Inventory tokenturn = Bukkit.createInventory(null, inv_rows, inventory_name);
  25.  
  26. toReturn.setContents(inv.getContents());
  27.  
  28. return toRuturn;
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment