// Path: src/main/java/myessentials/localization/api/LocalManager.java
// public class LocalManager {
// 
//     private static Map<String, Local> localizations = new HashMap<String, Local>();
// 
//     /**
//      * Registers a localization file to be used globally
//      * The key string should be the first part of any localization key that is found in the file
//      */
//     public static void register(Local local, String key) {
//         localizations.put(key, local);
//     }
// 
//     /**
//      * Finds the localized version that the key is pointing at and sends it to the ICommandSender
//      */
//     public static void send(ICommandSender sender, String localizationKey, Object... args) {
//         sender.addChatMessage(get(localizationKey, args));
//     }
// 
//     public static ChatComponentFormatted get(String localizationKey, Object... args) {
//         Local local = localizations.get(localizationKey.split("\\.")[0]);
//         return local.getLocalization(localizationKey, args);
//     }
// }


import myessentials.localization.api.LocalManager;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.IChatComponent;
import net.minecraft.entity.player.EntityPlayerMP;
import java.util.List;
package myessentials.chat.api;



public class ChatManager {

    /**
     * Global method for sending localized messages
     */
    public static void send(ICommandSender sender, String localizationKey, Object... args) {
// Path: src/main/java/myessentials/localization/api/LocalManager.java
// public class LocalManager {
// 
//     private static Map<String, Local> localizations = new HashMap<String, Local>();
// 
//     /**
//      * Registers a localization file to be used globally
//      * The key string should be the first part of any localization key that is found in the file
//      */
//     public static void register(Local local, String key) {
//         localizations.put(key, local);
//     }
// 
//     /**
//      * Finds the localized version that the key is pointing at and sends it to the ICommandSender
//      */
//     public static void send(ICommandSender sender, String localizationKey, Object... args) {
//         sender.addChatMessage(get(localizationKey, args));
//     }
// 
//     public static ChatComponentFormatted get(String localizationKey, Object... args) {
//         Local local = localizations.get(localizationKey.split("\\.")[0]);
//         return local.getLocalization(localizationKey, args);
//     }
// }


// Path: src/main/java/myessentials/chat/api/ChatManager.java
import myessentials.localization.api.LocalManager;
import net.minecraft.command.ICommandSender;
import net.minecraft.util.IChatComponent;
import net.minecraft.entity.player.EntityPlayerMP;
import java.util.List;

package myessentials.chat.api;



public class ChatManager {

    /**
     * Global method for sending localized messages
     */
    public static void send(ICommandSender sender, String localizationKey, Object... args) {
        send(sender, LocalManager.get(localizationKey, args));