public static String ParseMessage(Player p, String s)
    {
        PermissionManager manager = null;
        String messageFormat = "<%prefix%player%suffix> %message";
        if(Bukkit.getServer().getPluginManager().isPluginEnabled("PermissionsEx")) manager = PermissionsEx.getPermissionManager();
        if(Bukkit.getServer().getPluginManager().isPluginEnabled("ChatManager")) messageFormat = Bukkit.getServer().getPluginManager().getPlugin("ChatManager").getConfig().getString("message-format");
        
        String message = "<" + p.getName() + "> " + s;
        
        if(manager != null)
        {
            PermissionUser user = manager.getUser(p);
            String prefix = user.getPrefix().replaceAll("&", "§");
            String suffix = user.getSuffix().replaceAll("&", "§");
            message = messageFormat;
            message = message.replace("%prefix", prefix);
            message = message.replace("%player", p.getDisplayName());
            message = message.replace("%suffix", suffix + IrcColor.NORMAL.getIRCColor());
            message = message.replace("%message", s);
        }
        
        return message;
    }