Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.wolfeiii.event.ui;
- import org.bukkit.Bukkit;
- import org.bukkit.entity.Player;
- import org.bukkit.inventory.Inventory;
- import org.bukkit.inventory.ItemStack;
- import me.wolfeiii.event.utils.Utils;
- public class EventUI {
- public static Inventory inv;
- public static String inventory_name;
- public static int inv_rows = 4 * 9;
- public static void initialize() {
- inventory_name = Utils.chat("&cEvent GUI");
- inv = Bukkit.createInventory(null, inv_rows);
- }
- public static Inventory GUI (Player p) {
- Inventory toReturn = Bukkit.createInventory(null, inv_rows, inventory_name);
- Utils.createItem(inv, "dirt", 1, 1, "&3Sumo", "&7Sumo event startas om du trycker här!!", "Coolt va?");
- Utils.createItem(inv, "WOOL", 1, 13, "&3Red Rover", "test");
- toReturn.setContents(inv.getContents());
- return toReturn;
- }
- public static void clicked(Player p, int slot, ItemStack clicked, Inventory inv) {
- if (clicked.getItemMeta().getDisplayName().equalsIgnoreCase(Utils.chat("&3Sumo"))) {
- p.sendMessage(Utils.chat("&4gg have fun")); //< this is where i want them to teleport instead of it sending a message.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement