Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.linebeck.Tingle.gui;
- import java.util.HashSet;
- import java.util.UUID;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.Material;
- import org.bukkit.enchantments.Enchantment;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.Inventory;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.meta.ItemMeta;
- public class MiniGameSelection
- {
- public static HashSet<UUID> GuiUsers = new HashSet<UUID>();
- public static void openGui(Player player)
- {
- Inventory gui = Bukkit.createInventory(null, 27, ChatColor.GOLD + "" + ChatColor.BOLD + "Mini" + ChatColor.GREEN + "" + ChatColor.BOLD + "Games");
- ItemStack phantomChase = new ItemStack(Material.PURPLE_SHULKER_BOX);
- ItemMeta phantomChaseMeta = phantomChase.getItemMeta();
- phantomChaseMeta.setDisplayName(ChatColor.DARK_PURPLE + "" + ChatColor.BOLD + "Phantom" + ChatColor.LIGHT_PURPLE + "" + ChatColor.BOLD + "Chase");
- phantomChase.setItemMeta(phantomChaseMeta);
- ItemStack cuccoBattle = new ItemStack(Material.COOKED_CHICKEN);
- ItemMeta cuccoBattleMeta = cuccoBattle.getItemMeta();
- cuccoBattleMeta.setDisplayName(ChatColor.WHITE + "" + ChatColor.BOLD + "Cucco" + ChatColor.DARK_RED + "" + ChatColor.BOLD + "Battle");
- cuccoBattle.setItemMeta(cuccoBattleMeta);
- ItemStack zeldaFest = new ItemStack(Material.ENCHANTING_TABLE);
- ItemMeta zeldaFestMeta = zeldaFest.getItemMeta();
- zeldaFestMeta.setDisplayName(ChatColor.RED + "" + ChatColor.BOLD + "Zelda" + ChatColor.BLUE + ChatColor.BOLD + "Fest");
- zeldaFest.setItemMeta(zeldaFestMeta);
- ItemStack close = new ItemStack(Material.BARRIER);
- ItemMeta closeMeta = close.getItemMeta();
- closeMeta.setDisplayName(ChatColor.RED + "" + ChatColor.BOLD + "Close");
- close.setItemMeta(closeMeta);
- gui.setItem(12, phantomChase);
- gui.setItem(13, cuccoBattle);
- gui.setItem(14, zeldaFest);
- gui.setItem(22, close);
- //Glass Panes
- ItemStack glassPane = new ItemStack(Material.BLUE_STAINED_GLASS_PANE);
- ItemMeta glassPaneMeta = glassPane.getItemMeta();
- //Glass Panes Meta
- glassPaneMeta.setDisplayName(" ");
- glassPaneMeta.addEnchant(Enchantment.DURABILITY, 3, true);
- glassPane.setItemMeta(glassPaneMeta);
- for(int i = 0; i < gui.getSize(); i++)
- {
- if(gui.getItem(i) == null)
- {
- gui.setItem(i, glassPane);
- }
- }
- player.openInventory(gui);
- GuiUsers.add(player.getUniqueId());
- player.sendMessage("HELLO?");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement