<commit_before>package me.Qball.Wild.GUI;

import java.util.ArrayList;

import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

public class HookGui {
	public static void openHook(Player p)
	{
		
			ItemStack Close = new ItemStack(Material.REDSTONE_BLOCK, 1);
			ItemMeta meta = Close.getItemMeta();
			meta.setDisplayName("Close");
			ArrayList<String>lore = new ArrayList<String>();
			lore.add("Click to close the inventory and return to normal gameplay");
			meta.setLore(lore);
			Close.setItemMeta(meta);
			Inventory Wildtp = Bukkit.createInventory(p,18, "Hooks");
			p.openInventory(Wildtp);
			Wildtp.setItem(0, towny());
			Wildtp.setItem(2,factions());
			Wildtp.setItem(4,griefPreven());
			Wildtp.setItem(6,worldGuard());
			Wildtp.setItem(8,kingdoms());
			Wildtp.setItem(19,factionsUUID());
			Wildtp.setItem(17,Close);
	}
	public static ItemStack factions()
	{
		ItemStack factions = new ItemStack(Material.TNT,1);
		ItemMeta meta = factions.getItemMeta();
		meta.setDisplayName("Factions Hook");
		ArrayList<String> lore = new ArrayList<String>(); 
		lore.add("Click to enable or disable factions hook");
		meta.setLore(lore);
		factions.setItemMeta(meta);
		return factions;
	}
	public static ItemStack factionsUUID()
	{
		ItemStack factions = new ItemStack(Material.TNT,1);
		ItemMeta meta = factions.getItemMeta();
		meta.setDisplayName("FactionsUUID Hook");
		ArrayList<String> lore = new ArrayList<String>();
		lore.add("Click to enable or disable factionsuuid hook");
		meta.setLore(lore);
		factions.setItemMeta(meta);
		return factions;
	}

	public static ItemStack griefPreven()
	{
		ItemStack griefPreven = new ItemStack(Material.WOOD_SPADE,1);
		ItemMeta meta = griefPreven.getItemMeta();
		meta.setDisplayName("GriefPrevention Hook");
		ArrayList<String> lore = new ArrayList<String>();<commit_msg>Fixed IndexOutOfBounds error caaused by factionsUUID hook icon<commit_after>package me.Qball.Wild.GUI;

import java.util.ArrayList;

import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

public class HookGui {
	public static void openHook(Player p)
	{
		
			ItemStack Close = new ItemStack(Material.REDSTONE_BLOCK, 1);
			ItemMeta meta = Close.getItemMeta();
			meta.setDisplayName("Close");
			ArrayList<String>lore = new ArrayList<String>();
			lore.add("Click to close the inventory and return to normal gameplay");
			meta.setLore(lore);
			Close.setItemMeta(meta);
			Inventory Wildtp = Bukkit.createInventory(p,18, "Hooks");
			p.openInventory(Wildtp);
			Wildtp.setItem(0, towny());
			Wildtp.setItem(2,factions());
			Wildtp.setItem(4,griefPreven());
			Wildtp.setItem(6,worldGuard());
			Wildtp.setItem(8,kingdoms());
			Wildtp.setItem(10,factionsUUID());
			Wildtp.setItem(17,Close);
	}
	public static ItemStack factions()
	{
		ItemStack factions = new ItemStack(Material.TNT,1);
		ItemMeta meta = factions.getItemMeta();
		meta.setDisplayName("Factions Hook");
		ArrayList<String> lore = new ArrayList<String>(); 
		lore.add("Click to enable or disable factions hook");
		meta.setLore(lore);
		factions.setItemMeta(meta);
		return factions;
	}
	public static ItemStack factionsUUID()
	{
		ItemStack factions = new ItemStack(Material.TNT,1);
		ItemMeta meta = factions.getItemMeta();
		meta.setDisplayName("FactionsUUID Hook");
		ArrayList<String> lore = new ArrayList<String>();
		lore.add("Click to enable or disable factionsuuid hook");
		meta.setLore(lore);
		factions.setItemMeta(meta);
		return factions;
	}

	public static ItemStack griefPreven()
	{
		ItemStack griefPreven = new ItemStack(Material.WOOD_SPADE,1);
		ItemMeta meta = griefPreven.getItemMeta();
		meta.setDisplayName("GriefPrevention Hook");
		ArrayList<String> lore = new ArrayList<String>();
{'fraction_non_alphanumeric': 0.1262160139685707, 'fraction_numerical': 0.0074831628835120975, 'mean_word_length': 5.3249211356466875, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2629097', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1317, 'n_words': 274}