package me.galaran.bukkitutils.__utils_project_name__.text;

import java.util.HashMap;
import java.util.Map;

public class McEncoding {

    private static final String WRONG =  "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¸¨";
    private static final String RIGHT =  "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяёЁ";

    private static final Map<Character, Character> encMap = new HashMap<Character, Character>();
    static {
        for (int i = 0; i < WRONG.length(); i++) {
            encMap.put(WRONG.charAt(i), RIGHT.charAt(i));
        }
    }

    public static String fix(String str) {
        if (str == null) return null;
        if (str.isEmpty()) return "";

        StringBuilder sb = new StringBuilder();

        for (char curChar : str.toCharArray()) {
            Character replace = encMap.get(curChar);
            sb.append(replace == null ? curChar : replace);
        }

        return sb.toString();
    }
}

@@ -65,26 +65,126 @@
 ort 
-java.util.HashMap;
+org.bukkit.inventory.ItemStack;%0Aimport org.bukkit.inventory.meta.BookMeta;%0Aimport org.bukkit.inventory.meta.ItemMeta;%0A
 %0Aimp
@@ -197,19 +197,17 @@
 va.util.
-Map
+*
 ;%0A%0Apubli
@@ -1025,24 +1025,24 @@
 %0A        %7D%0A%0A
-
         retu
@@ -1064,11 +1064,1009 @@
 );%0A    %7D
+%0A%0A    public static List%3CString%3E fixCollection(Collection%3CString%3E col) %7B%0A        if (col == null) return null;%0A        if (col.isEmpty()) return Collections.emptyList();%0A%0A        List%3CString%3E result = new ArrayList%3CString%3E(col.size());%0A        for (String element : col) %7B%0A            result.add(fix(element));%0A        %7D%0A        return result;%0A    %7D%0A%0A    public static ItemStack fixItem(ItemStack stack) %7B%0A        if (stack == null) return null;%0A        if (!stack.hasItemMeta()) %7B%0A            return stack;%0A        %7D%0A%0A        ItemMeta meta = stack.getItemMeta();%0A        meta.setDisplayName(fix(meta.getDisplayName()));%0A        meta.setLore(fixCollection(meta.getLore()));%0A        %0A        if (meta instanceof BookMeta) %7B%0A            BookMeta book = (BookMeta) meta;%0A            book.setAuthor(fix(book.getAuthor()));%0A            book.setTitle(fix(book.getTitle()));%0A            book.setPages(fixCollection(book.getPages()));%0A        %7D%0A%0A        stack.setItemMeta(meta);%0A        return stack;%0A    %7D
 %0A%7D%0A

Add fixCollection and fixItem encoding