package org.black_ixx.bossshop.managers;

import org.bukkit.ChatColor;

/**
 * 用于转换字符串中的特殊字符
 * @author 聪聪
 *
 */
public class StringManager{

    public static String transform(String s){
        s=s.replace("[<3]","❤");
        s=s.replace("[*]","★");
        s=s.replace("[**]","✹");
        s=s.replace("[o]","●");
        s=s.replace("[v]","✔");
        s=s.replace("[+]","♦");
        s=s.replace("[x]","✦");
        s=s.replace("[%]","♠");
        s=s.replace("[%%]","♣");
        s=s.replace("[radioactive]","☢");
        s=s.replace("[peace]","☮");
        s=s.replace("[moon]","☾");
        s=s.replace("[crown]","♔");
        s=s.replace("[note]","♩ ");
        return ChatColor.translateAlternateColorCodes('&',s);
    }
}
