// Path: UltimateSurvivalGames/src/me/maker56/survivalgames/commands/messages/MessageHandler.java
// public class MessageHandler {
// 	
// 	private static HashMap<String, String> messages = new HashMap<>();
// 	private static List<String> withoutPrefix = new ArrayList<>();
// 	
// 	public static void reload() {
// 		messages.clear();
// 		for(String key : SurvivalGames.messages.getConfigurationSection("").getKeys(false)) {
// 			messages.put(key, replaceColors(SurvivalGames.messages.getString(key)));
// 		}
// 		
// 		withoutPrefix.add("prefix");
// 		withoutPrefix.add("stats-kills");
// 		withoutPrefix.add("stats-deaths");
// 		withoutPrefix.add("stats-kdr");
// 		withoutPrefix.add("stats-wins");
// 		withoutPrefix.add("stats-played");
// 		withoutPrefix.add("stats-points");
// 		withoutPrefix.add("stats-footer");
// 		
// 		System.out.println("[SurvivalGames] " + messages.size() + " messages loaded!");
// 	}
// 	
// 	public static String getMessage(String name) {
// 		if(messages.containsKey(name)) {
// 			if(withoutPrefix.contains(name)) {
// 				return messages.get(name);
// 			} else {
// 				return messages.get("prefix") + messages.get(name);
// 			}
// 		} else {
// 			return "§cMessage not found!";
// 		}
// 	}
// 	
// 	public static String replaceColors(String s) {
// 		return ChatColor.translateAlternateColorCodes('&', s);
// 	}
// 
// }


import java.util.ArrayList;
import java.util.List;
import me.maker56.survivalgames.commands.messages.MessageHandler;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.ClickEvent.Action;
import net.md_5.bungee.api.chat.ComponentBuilder;
import net.md_5.bungee.api.chat.HoverEvent;
import org.bukkit.entity.Player;

package me.maker56.survivalgames.chat;




public class Helper {

	public static void showLobbyHelpsite(Player p) {
		p.sendMessage(MessageHandler.getMessage("prefix") + "Lobby Management §7§m---§r §6Helpsite");
		for(BaseComponent[] bc : lobby) {
			p.spigot().sendMessage(bc);
		}
	}
	
	public static void showConfigHelpsite(Player p) {
		p.sendMessage(MessageHandler.getMessage("prefix") + "Configuration §7§m---§r §6Helpsite");
		for(BaseComponent[] bc : config) {
			p.spigot().sendMessage(bc);
		}
	}
	
	public static void showArenaHelpsite(Player p) {

// Path: UltimateSurvivalGames/src/me/maker56/survivalgames/commands/messages/MessageHandler.java
// public class MessageHandler {
// 	
// 	private static HashMap<String, String> messages = new HashMap<>();
// 	private static List<String> withoutPrefix = new ArrayList<>();
// 	
// 	public static void reload() {
// 		messages.clear();
// 		for(String key : SurvivalGames.messages.getConfigurationSection("").getKeys(false)) {
// 			messages.put(key, replaceColors(SurvivalGames.messages.getString(key)));
// 		}
// 		
// 		withoutPrefix.add("prefix");
// 		withoutPrefix.add("stats-kills");
// 		withoutPrefix.add("stats-deaths");
// 		withoutPrefix.add("stats-kdr");
// 		withoutPrefix.add("stats-wins");
// 		withoutPrefix.add("stats-played");
// 		withoutPrefix.add("stats-points");
// 		withoutPrefix.add("stats-footer");
// 		
// 		System.out.println("[SurvivalGames] " + messages.size() + " messages loaded!");
// 	}
// 	
// 	public static String getMessage(String name) {
// 		if(messages.containsKey(name)) {
// 			if(withoutPrefix.contains(name)) {
// 				return messages.get(name);
// 			} else {
// 				return messages.get("prefix") + messages.get(name);
// 			}
// 		} else {
// 			return "§cMessage not found!";
// 		}
// 	}
// 	
// 	public static String replaceColors(String s) {
// 		return ChatColor.translateAlternateColorCodes('&', s);
// 	}
// 
// }


// Path: UltimateSurvivalGames/src/me/maker56/survivalgames/chat/Helper.java
import java.util.ArrayList;
import java.util.List;
import me.maker56.survivalgames.commands.messages.MessageHandler;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.ClickEvent.Action;
import net.md_5.bungee.api.chat.ComponentBuilder;
import net.md_5.bungee.api.chat.HoverEvent;
import org.bukkit.entity.Player;

package me.maker56.survivalgames.chat;




public class Helper {

	public static void showLobbyHelpsite(Player p) {
		p.sendMessage(MessageHandler.getMessage("prefix") + "Lobby Management §7§m---§r §6Helpsite");
		for(BaseComponent[] bc : lobby) {
			p.spigot().sendMessage(bc);
		}
	}
	
	public static void showConfigHelpsite(Player p) {
		p.sendMessage(MessageHandler.getMessage("prefix") + "Configuration §7§m---§r §6Helpsite");
		for(BaseComponent[] bc : config) {
			p.spigot().sendMessage(bc);
		}
	}
	
	public static void showArenaHelpsite(Player p) {

		p.sendMessage(MessageHandler.getMessage("prefix") + "Arena Management §7§m---§r §6Helpsite");
